[OpenLayers-Commits] r12024 - in sandbox/ahocevar/google-ng: examples lib/OpenLayers/Layer

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Sat May 28 05:25:59 EDT 2011


Author: ahocevar
Date: 2011-05-28 02:25:58 -0700 (Sat, 28 May 2011)
New Revision: 12024

Modified:
   sandbox/ahocevar/google-ng/examples/bing-tiles.html
   sandbox/ahocevar/google-ng/lib/OpenLayers/Layer/XYZ.js
Log:
merging latest from trunk

Modified: sandbox/ahocevar/google-ng/examples/bing-tiles.html
===================================================================
--- sandbox/ahocevar/google-ng/examples/bing-tiles.html	2011-05-28 09:15:55 UTC (rev 12023)
+++ sandbox/ahocevar/google-ng/examples/bing-tiles.html	2011-05-28 09:25:58 UTC (rev 12024)
@@ -8,9 +8,10 @@
     <link rel="stylesheet" href="style.css" type="text/css">
     <style type="text/css">
     .olControlAttribution {
-        left: 5px;
+        left: 2px;
         right: inherit;
-        bottom: 5px; 
+        bottom: 3px;
+        line-height: 11px; 
     }
     </style>
   </head>

Modified: sandbox/ahocevar/google-ng/lib/OpenLayers/Layer/XYZ.js
===================================================================
--- sandbox/ahocevar/google-ng/lib/OpenLayers/Layer/XYZ.js	2011-05-28 09:15:55 UTC (rev 12023)
+++ sandbox/ahocevar/google-ng/lib/OpenLayers/Layer/XYZ.js	2011-05-28 09:25:58 UTC (rev 12024)
@@ -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