From 0a1385b22d806c90a5e095ece84de9c4c9290991 Mon Sep 17 00:00:00 2001 From: euzuro Date: Mon, 5 Jun 2006 14:34:48 +0000 Subject: [PATCH] have the Tile add itself to it's layer's div. give it a destroy() function that removes itself git-svn-id: http://svn.openlayers.org/trunk/openlayers@510 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Tile/Image.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/OpenLayers/Tile/Image.js b/lib/OpenLayers/Tile/Image.js index 50aef912d6..1fa9ba69ec 100644 --- a/lib/OpenLayers/Tile/Image.js +++ b/lib/OpenLayers/Tile/Image.js @@ -22,6 +22,11 @@ OpenLayers.Tile.Image.prototype = OpenLayers.Tile.prototype.initialize.apply(this, arguments); }, + destroy: function() { + this.layer.div.removeChild(this.img); + this.img = null; + }, + /** */ draw:function() { @@ -31,6 +36,7 @@ OpenLayers.Tile.Image.prototype = this.size, this.url, "absolute"); + this.layer.div.appendChild(this.img); }, /** @final @type String */