[OpenLayers-Users] turn features on and off

Arnd Wippermann arnd.wippermann at web.de
Sun Oct 19 18:06:51 EDT 2008


A lightweight solution of your idea are possible without a patch. 

With a feature attribute i.e 'group' for the features of a vector layer,
it's possible to change the visibility of features with using
addUniqueValuesRules.

Example :
http://gis.ibbeck.de/ginfo/apps/OLExamples/OL26/examples/styles_unique_with_
group.html

Arnd Wippermann
 

-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Matthias Pohl
Gesendet: Samstag, 18. Oktober 2008 23:20
An: users at openlayers.org
Betreff: [OpenLayers-Users] turn features on and off

Hi,

>I'd like to turn off a group of animals (a group of points declared by 
>there attribute). It's not enough to turn them off by opacity because

you could try the grouping-vector-features.patch. Find details on the
project page http://ol.m-click.ws/

example - http://ol.m-click.ws/demo.html patch -
http://ol.m-click.ws/grouping-vector-features.patch

Regards, matt

_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list