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

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu Sep 1 10:47:44 EDT 2011


Author: erilem
Date: 2011-09-01 07:47:43 -0700 (Thu, 01 Sep 2011)
New Revision: 12314

Modified:
   sandbox/camptocamp/clientzoom/lib/OpenLayers/Layer/Grid.js
Log:
minor code styling changes in Layer/Grid.js

Modified: sandbox/camptocamp/clientzoom/lib/OpenLayers/Layer/Grid.js
===================================================================
--- sandbox/camptocamp/clientzoom/lib/OpenLayers/Layer/Grid.js	2011-09-01 14:40:26 UTC (rev 12313)
+++ sandbox/camptocamp/clientzoom/lib/OpenLayers/Layer/Grid.js	2011-09-01 14:47:43 UTC (rev 12314)
@@ -237,10 +237,10 @@
             // if grid is empty or zoom has changed, we *must* re-tile
             var forceReTile = !this.grid.length || zoomChanged;
 
-            var resolution = this.map.getResolution(),
-                serverSupportedResolution = this.getServerSupportedResolution(resolution);
-            if (resolution !== serverSupportedResolution) {
-                bounds = this.map.calculateBounds(null, serverSupportedResolution);
+            var resolution = this.map.getResolution();
+            var supportedAvailable = this.getServerSupportedResolution(resolution);
+            if(resolution !== supportedAvailable) {
+                bounds = this.map.calculateBounds(null, supportedAvailable);
             }
 
             // total bounds of the tiles
@@ -271,10 +271,10 @@
                 }
             }
 
-            if(resolution !== serverSupportedResolution) {
+            if(resolution !== supportedAvailable) {
                 if(forceReTile) {
                     // stretch the layer div
-                    this.transformDiv(serverSupportedResolution / resolution);
+                    this.transformDiv(supportedAvailable / resolution);
                 }
             } else {
                 // reset the layer width, height, left, top, to deal with



More information about the Commits mailing list