[OpenLayers-Users] Destroying all the features in a vector layer
Simone Gadenz
simone.gadenz at jrc.it
Tue Aug 5 05:49:05 EDT 2008
Hello!
I have a layer of vector geocoded features that I want to be clean when the
users click on a button.
The features react to the user interaction opening a popup managed by the
SelectFeatures control.
I manage to remove all the feature from the map using a very simple function
like this:
function clearData(layer){
layer.destroyFeatures();
}
The problem is if one popup is open when the functio is called. In that case
the popup is not destroyed.
Is there a way of removing all the popups?
Thanks
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20080805/3f4a9a19/attachment.html
More information about the Users
mailing list