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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im
Auftrag von Matthias Pohl
Gesendet: Samstag, 18. Oktober 2008 23:20
An: users@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@openlayers.org
http://openlayers.org/mailman/listinfo/users

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

Reply via email to