[OpenLayers-Users] Need advice regarding styling vector points
Arnd Wippermann
arnd.wippermann at web.de
Sat Mar 7 13:35:27 EST 2009
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: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Zer
Gesendet: Samstag, 7. März 2009 17:36
An: users at openlayers.org
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
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users
More information about the Users
mailing list