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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user