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