no longer need to worry about grid moving around when it's invisible.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@1251 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-08-16 18:14:10 +00:00
parent 4f3641606b
commit 0f9a02bf61

View File

@@ -125,12 +125,8 @@ OpenLayers.Layer.Grid.prototype =
bounds = this.map.getExtent();
}
if (bounds != null) {
if (!this.getVisibility()) {
if (zoomChanged) {
this.clearGrid();
}
} else if (!this.grid.length || zoomChanged
|| !this.getGridBounds().containsBounds(bounds, true)) {
if (!this.grid.length || zoomChanged
|| !this.getGridBounds().containsBounds(bounds, true)) {
this._initTiles();
} else {
while (true) {