[OpenLayers-Users] Styling features individually
Bart van den Eijnden
bartvde at opengeo.org
Fri Sep 28 05:56:41 PDT 2012
You can associate the style with the feature, i.e. set feature.style.
Otherwise, show us some of your relevant code.
Best regards,
Bart
--
Bart van den Eijnden
OpenGeo - http://opengeo.org
Expert service straight from the developers.
On Sep 28, 2012, at 2:45 PM, Claudio V. <claudio.carvalho at lemaf.ufla.br> wrote:
> Hello, I'm working in an application that allows the user to draw over the map and has a side panel with controls for the color, opacity and stroke width. I have a single vector layer where all the drawn features are added.
> However, I want each feature to use the currently selected style. That happens at first, but, as soon as the map is moved/zoomed all the features are updated to use the current style.
> Is there a way to style features individually in a single vector layer?
> Thanks in advance,
> Cláudio V.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120928/34b4ffad/attachment.html>
More information about the Users
mailing list