diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index ee0341e721..e8e371488d 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -239,7 +239,6 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, { if (this.timerId != null) { window.clearTimeout(this.timerId); } - this._bounds = bounds; this.timerId = window.setTimeout( this._moveGriddedTiles, this.tileLoadingDelay @@ -663,7 +662,6 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, { * Method: moveGriddedTiles */ moveGriddedTiles: function() { - var bounds = this._bounds; var shifted = true; var buffer = this.buffer || 1; var tlLayer = this.grid[0][0].position; @@ -678,7 +676,6 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, { this.shiftRow(false); } else { shifted = false; - delete this._bounds; } if (shifted) { // we may have other row or columns to shift, schedule it diff --git a/tests/Layer/Grid.html b/tests/Layer/Grid.html index 98c86eea6c..ac4f35cf51 100644 --- a/tests/Layer/Grid.html +++ b/tests/Layer/Grid.html @@ -195,7 +195,7 @@ }; layer._moveGriddedTiles = function() { g_WhichFunc = "MoveGridded"; - g_Bounds = layer._bounds; + g_Bounds = layer.map.getExtent(); }; var clearTestBounds = function() { g_WhichFunc = null;