From fa090a0826726e905d448a54623bf940508c57f7 Mon Sep 17 00:00:00 2001 From: euzuro Date: Mon, 17 Jul 2006 13:09:39 +0000 Subject: [PATCH] clear the grid if not visible git-svn-id: http://svn.openlayers.org/trunk/openlayers@958 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Grid.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index f75e0668dd..01da4f4298 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -113,6 +113,8 @@ OpenLayers.Layer.Grid.prototype = moveTo:function(bounds, zoomChanged, minor) { if (!this.getVisibility()) { if (zoomChanged) { + //now clear out the old grid and start a new one + this.clearGrid(); this.grid = null; } } else {