When panning by large distances, OpenLayers previously created all the grid
space inbetween. This no longer happens -- instead, the grid will re-init if the bounds is not at least partially contained by the existing box. git-svn-id: http://svn.openlayers.org/trunk/openlayers@1074 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -148,7 +148,9 @@ OpenLayers.Layer.Grid.prototype =
|
|||||||
} else {
|
} else {
|
||||||
if (!this.grid || zoomChanged) {
|
if (!this.grid || zoomChanged) {
|
||||||
this._initTiles();
|
this._initTiles();
|
||||||
} else {
|
} else if (this.getGridBounds().containsBounds(bounds, true) == false) {
|
||||||
|
this._initTiles();
|
||||||
|
} else {
|
||||||
var i = 0;
|
var i = 0;
|
||||||
while (this.getGridBounds().bottom > bounds.bottom) {
|
while (this.getGridBounds().bottom > bounds.bottom) {
|
||||||
this.insertRow(false);
|
this.insertRow(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user