From 08af94cf84656df508c72218badef43734da50a1 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Sat, 3 Dec 2011 00:13:44 +0100 Subject: [PATCH] We never need to retile when the zoom didn't change. --- lib/OpenLayers/Layer/Grid.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index 5e23c828fb..3379813d9a 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -319,14 +319,6 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, { } } else { - // if the bounds have changed such that they are not even - // *partially* contained by our tiles (IE user has - // programmatically panned to the other side of the earth) - // then we want to reTile (thus, partial true). - - forceReTile = forceReTile || - !tilesBounds.containsBounds(bounds, true); - if(resolution !== serverResolution) { bounds = this.map.calculateBounds(null, serverResolution); if(forceReTile) {