<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#40007f;">Hi,<br><br>I´m having a bad time trying to set styles to vector features,<br><br>I have made this...<br><br><br><div>var style_solar = new OpenLayers.StyleMap({<br> "default": new OpenLayers.Style(OpenLayers.Util.applyDefaults({<br> fillOpacity: 0.6, <br> fillColor: '#000000'<br> },
OpenLayers.Feature.Vector.style["default"])),<br> "select": new OpenLayers.Style(OpenLayers.Util.applyDefaults({<br> fillOpacity: 0.6, <br> fillColor: '#FF0000'<br> }, OpenLayers.Feature.Vector.style["select"]))<br> });<br><br><br>which works ok...but I really need to add rules according to the wfs property "solar_kopf"<br><br>How can I apply rules to the stylemap?<br><br>I have
tried numerous times but they all fail.<br><br>Could anyone provide me with a couple of examples?<br><br>yours,<br><br>Robert<br></div>
</div></body></html>