var styleMap = new OpenLayers.StyleMap({ fillColor: "#666666" }); layer.features[0].style = styleMap; layer.redraw();