[OpenLayers-Users] Quickly hiding and showing features

Stefan Lischke lischke at novacom.net
Wed Apr 29 12:50:49 EDT 2009


Hi Nicholas,

I had the same problem some minutes ago and i put my features on different
layers and for every "slider step" i hide/show a corresponding layer. I did
this whith calling layer.setVisibility()

Hth

Stefan

-----Ursprüngliche Nachricht-----
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im
Auftrag von Nicholas Bergson-Shilcock
Gesendet: Mittwoch, 29. April 2009 18:11
An: OpenLayers users mailing list
Betreff: [OpenLayers-Users] Quickly hiding and showing features

I have a slider whose value I would like to link directly to what vector
features appear on my map (i.e., as the user moves the slider, I would like
certain features to appear/disappear). 

Is the best way to do this to simply call add/removeFeatures on the layer,
or is there a way for me to only toggle their visibility?

Thanks,
  -Nicholas
_______________________________________________
Users mailing list
Users at openlayers.org
http://openlayers.org/mailman/listinfo/users




More information about the Users mailing list