[OpenLayers-Users] how to cleanly remove a vector layer
Roger Kunkel
rakunkel at ucdavis.edu
Wed May 30 16:36:41 EDT 2007
I'm having trouble using and then removing a vector layer.
removeFeatures() - produces errors saying that the feature is not
defined when feature.geometry is referenced.
calling destroy on the layer causes continuous mouse event errors
- it seems that the getFeatureFromEvent method keeps getting called
even though I've destroyed the layer.
I've tried calling removeLayer before destroying it, to no avail.
Any suggestions?
Thank you.
Roger Kunkel
CERES Program
Dept. of Land Air & Water Resources
UC Davis
rakunkel at ucdavis.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20070530/2d53e439/attachment.html
More information about the Users
mailing list