Feature.destroy does not remove marker from layer, p=gregers, r=me (closes #2181)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9847 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
bartvde
2009-11-27 15:54:03 +00:00
parent 95055aa457
commit e60dee85b9

View File

@@ -90,6 +90,10 @@ OpenLayers.Feature = OpenLayers.Class({
this.layer.map.removePopup(this.popup);
}
}
// remove the marker from the layer
if (this.layer != null && this.marker != null) {
this.layer.removeMarker(this.marker);
}
this.layer = null;
this.id = null;