when we destroy a grid layer, destroy all of its tiles
git-svn-id: http://svn.openlayers.org/trunk/openlayers@540 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -35,6 +35,16 @@ OpenLayers.Layer.Grid.prototype = Object.extend( new OpenLayers.Layer(), {
|
|||||||
OpenLayers.Layer.Grid.TILE_HEIGHT);
|
OpenLayers.Layer.Grid.TILE_HEIGHT);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
destroy: function() {
|
||||||
|
this.params = null;
|
||||||
|
this.clearGrid();
|
||||||
|
this.grid = null;
|
||||||
|
OpenLayers.Layer.prototype.destroy.apply(this, arguments);
|
||||||
|
},
|
||||||
|
|
||||||
setTileSize: function (size) {
|
setTileSize: function (size) {
|
||||||
this.tileSize = size.copyOf();
|
this.tileSize = size.copyOf();
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user