[OpenLayers-Users] Change color on WFS features?

Swärd Mårten marten.sward at smhi.se
Wed Nov 7 09:33:52 EST 2007

Hello folks!
How do I do to change color on a specific feature in a WFS-layer?
If I do it like the code below, then all of the features change color:
layer = new OpenLayers.Layer.WFS(XXXXX);
layer.style = {fillColor:'#FF0000'};

What I want to do is to change color an a feature with a specific value in one of it's attributes, but I can't find the features anyware...

Best regards! //Mårten

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20071107/a4378b28/attachment.html

More information about the Users mailing list