on destroy() of a WFS feature, remove its marker

git-svn-id: http://svn.openlayers.org/trunk/openlayers@527 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-06-05 19:01:10 +00:00
parent 82d4a1327c
commit bad9a0307e

View File

@@ -24,6 +24,13 @@ OpenLayers.Feature.WFS.prototype =
this.layer.addMarker(this.marker);
}
},
destroy: function() {
if (this.marker != null) {
this.layer.removeMarker(this.marker);
}
OpenLayers.Feature.prototype.destroy.apply(this, arguments);
},
/**
* @param {XMLNode} xmlNode