You can use the 'rules' configuration option to create styles for each feature matching that rule. They should inherit from the base style, so you only need to specify the style properties that change for each rule.
You can also use the convenience method of OpenLayers.StyleMap 'addUniqueValueRules'
Hope that helps
Matt Priour

On 01/22/2013 09:04 AM, Eralp Bayraktar wrote:
I have a quick question. I found many codes on the internet assigning styles to features individually. Is there an option to do that for stylemaps too?

I know I can give stylemap to the layer but I need 'individual' kind of solution, thanks.


_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users



_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to