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);
|
OpenLayers.Tile.prototype.initialize.apply(this, arguments);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
destroy: function() {
|
||||||
|
this.layer.div.removeChild(this.img);
|
||||||
|
this.img = null;
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*/
|
*/
|
||||||
draw:function() {
|
draw:function() {
|
||||||
@@ -31,6 +36,7 @@ OpenLayers.Tile.Image.prototype =
|
|||||||
this.size,
|
this.size,
|
||||||
this.url,
|
this.url,
|
||||||
"absolute");
|
"absolute");
|
||||||
|
this.layer.div.appendChild(this.img);
|
||||||
},
|
},
|
||||||
|
|
||||||
/** @final @type String */
|
/** @final @type String */
|
||||||
|
|||||||
Reference in New Issue
Block a user