Could anyone explain one confusing things.<br>I want to change style of particular one of many features in the layer.<br><br><div>Why this syntax works:<br><br>layer.features[1].style = new OpenLayers.Style();<br>layer.features[1].style.fillColor = "#DFDFFF";<br>
layer.redraw();<br><br>But this no give expected result:<br><br></div><div>layer.features[1].style = new OpenLayers.Style({fillColor: "#DFDFFF"});<br>layer.redraw();<br><br></div><div>Thanks!<br><br></div>