[OpenLayers-Commits] r12016 - trunk/openlayers/lib/OpenLayers/Layer

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Thu May 26 10:31:15 EDT 2011


Author: erilem
Date: 2011-05-26 07:31:14 -0700 (Thu, 26 May 2011)
New Revision: 12016

Modified:
   trunk/openlayers/lib/OpenLayers/Layer/XYZ.js
Log:
XYZ.js trips-up JavaScript minify tools, no functional change (#3314)

Modified: trunk/openlayers/lib/OpenLayers/Layer/XYZ.js
===================================================================
--- trunk/openlayers/lib/OpenLayers/Layer/XYZ.js	2011-05-25 23:37:31 UTC (rev 12015)
+++ trunk/openlayers/lib/OpenLayers/Layer/XYZ.js	2011-05-26 14:31:14 UTC (rev 12016)
@@ -140,10 +140,10 @@
      */
     getXYZ: function(bounds) {
         var res = this.map.getResolution();
-        var x = Math.round((bounds.left - this.maxExtent.left) 
-            / (res * this.tileSize.w));
-        var y = Math.round((this.maxExtent.top - bounds.top) 
-            / (res * this.tileSize.h));
+        var x = Math.round((bounds.left - this.maxExtent.left) /
+            (res * this.tileSize.w));
+        var y = Math.round((this.maxExtent.top - bounds.top) /
+            (res * this.tileSize.h));
         var z = this.serverResolutions != null ?
             OpenLayers.Util.indexOf(this.serverResolutions, res) :
             this.map.getZoom() + this.zoomOffset;



More information about the Commits mailing list