From bf98cb620d1e05145b09bd7d0d2056ee45e0cbec Mon Sep 17 00:00:00 2001 From: euzuro Date: Fri, 2 Jun 2006 16:37:20 +0000 Subject: [PATCH] give OpenLayers.Marker a destroy() git-svn-id: http://svn.openlayers.org/trunk/openlayers@501 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Marker.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/OpenLayers/Marker.js b/lib/OpenLayers/Marker.js index fcf3b04e54..c0d83c32bf 100644 --- a/lib/OpenLayers/Marker.js +++ b/lib/OpenLayers/Marker.js @@ -30,6 +30,16 @@ OpenLayers.Marker.prototype = { this.events = new OpenLayers.Events(this, this.icon.imageDiv, null); }, + destroy: function() { + this.map = null; + + // code to remove HTMLImage will go here + // I realize now that it was not a good + // idea to give OpenLayers.Icon the + // 'imageDiv' property.. that should be + // here. This is on my hot-list to fix + }, + /** * @param {OpenLayers.Pixel} px *