[OpenLayers-Commits] r12328 - sandbox/camptocamp/clientzoom/lib/OpenLayers/Layer

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Mon Sep 5 05:18:59 EDT 2011


Author: erilem
Date: 2011-09-05 02:18:58 -0700 (Mon, 05 Sep 2011)
New Revision: 12328

Modified:
   sandbox/camptocamp/clientzoom/lib/OpenLayers/Layer/Grid.js
Log:
do not change the moveTo code for single-tiled layers

Modified: sandbox/camptocamp/clientzoom/lib/OpenLayers/Layer/Grid.js
===================================================================
--- sandbox/camptocamp/clientzoom/lib/OpenLayers/Layer/Grid.js	2011-09-05 08:42:26 UTC (rev 12327)
+++ sandbox/camptocamp/clientzoom/lib/OpenLayers/Layer/Grid.js	2011-09-05 09:18:58 UTC (rev 12328)
@@ -245,9 +245,8 @@
                 // We want to redraw whenever even the slightest part of the 
                 //  current bounds is not contained by our tile.
                 //  (thus, we do not specify partial -- its default is false)
-                forceReTile = forceReTile ||
-                              (!dragging && !tilesBounds.containsBounds(bounds));
-                if(forceReTile) {
+                if ( forceReTile ||
+                     (!dragging && !tilesBounds.containsBounds(bounds))) {
                     this.initSingleTile(bounds);
                 }
             } else {



More information about the Commits mailing list