Could anyone explain one confusing things.
I want to change style of particular one of many features in the layer.
Why this syntax works:
layer.features[1].style = new OpenLayers.Style();
layer.features[1].style.fillColor = "#DFDFFF";
layer.redraw();
But this no give expected result:
layer.features[1].style = new OpenLayers.Style({fillColor: "#DFDFFF"});
layer.redraw();
Thanks!
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users