From 0f9a02bf61613d99304a5d7b4739c0174323af8a Mon Sep 17 00:00:00 2001 From: euzuro Date: Wed, 16 Aug 2006 18:14:10 +0000 Subject: [PATCH] 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 --- lib/OpenLayers/Layer/Grid.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index bf7e3f107b..46edf0b99d 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -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) {