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
This commit is contained in:
euzuro
2006-06-05 14:34:48 +00:00
parent 22d122d2ee
commit 0a1385b22d

View File

@@ -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 */