Hi,

You can use addUniqueValueRules to style your features on an attribute
value. To change the visibility, you can generate new rules.

I have used this approach
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/styles_unique_with_
group.html

But with 1000 features there could be a performance problem.

Arnd Wippermann


-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im
Auftrag von Zer
Gesendet: Samstag, 7. März 2009 17:36
An: [email protected]
Betreff: [OpenLayers-Users] Need advice regarding styling vector points


Hi List,


I have a vector layer with features that have a value between 0 - 1000. I
would like too show the features  with values < 100 in one colour and
features with values >= 100 in another colour. I also would like to give the
user the ability to choose, using radio buttons, to show only features  with
values < 100, only features with values >= 1000 or all features. What would
be the best way to implement this? Can you create a set of stylemaps?

I've been using SLD to do this before, and that works just fine. However, I
now need support for labels and that does not work with SLD, so I have to
try and find a new solution.

Thanks,

-Z
--
View this message in context:
http://n2.nabble.com/Need-advice-regarding-styling-vector-points-tp2441146p2
441146.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.

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

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

Reply via email to