[OpenLayers-Users] Visibility of features in vector layer
djud
djud at bas.ac.uk
Tue May 5 06:04:10 EDT 2009
Hi,
I have a vector layer (OpenLayers.Layer.Vector) and have added a linear
feature to it.
If the user requests to temporarily hide the feature, I do that with:
layer.drawFeature(feature, { display: "none"});
This works fine except if the user now changes the map zoom level, the
linear feature magically re-appears.
My questions are:
1) Am I using the correct technique to hide the feature?
2) Is there a trick that will hide the feature at all zoom levels?
3) Should I destroy the feature instead of just hiding it?
Any help appreciated,
Dave
--
View this message in context: http://n2.nabble.com/Visibility-of-features-in-vector-layer-tp2792029p2792029.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list