Since we have a destroyFeatures command, use it. Patch from fredj, closes
#703. git-svn-id: http://svn.openlayers.org/trunk/openlayers@3151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -97,8 +97,7 @@ OpenLayers.Layer.Vector.prototype =
|
|||||||
destroy: function() {
|
destroy: function() {
|
||||||
OpenLayers.Layer.prototype.destroy.apply(this, arguments);
|
OpenLayers.Layer.prototype.destroy.apply(this, arguments);
|
||||||
|
|
||||||
// HACK HACK -- I believe we should be iterating and
|
this.destroyFeatures();
|
||||||
// calling feature[i].destroy() here.
|
|
||||||
this.features = null;
|
this.features = null;
|
||||||
this.selectedFeatures = null;
|
this.selectedFeatures = null;
|
||||||
if (this.renderer) {
|
if (this.renderer) {
|
||||||
|
|||||||
Reference in New Issue
Block a user