[fusion-commits] r2826 - sandbox/adsk/2.6l/lib

svn_fusion at osgeo.org svn_fusion at osgeo.org
Mon Dec 2 18:17:06 PST 2013


Author: liuar
Date: 2013-12-02 18:17:06 -0800 (Mon, 02 Dec 2013)
New Revision: 2826

Modified:
   sandbox/adsk/2.6l/lib/Map.js
Log:
#610: The zoom level is not correct with Google and Bing base maps.
It is because all the maps are using same resolutions, but the resolutions of Google and Bing map are different. We need to set the map resolutions according to the map itself.

Modified: sandbox/adsk/2.6l/lib/Map.js
===================================================================
--- sandbox/adsk/2.6l/lib/Map.js	2013-11-28 13:28:45 UTC (rev 2825)
+++ sandbox/adsk/2.6l/lib/Map.js	2013-12-03 02:17:06 UTC (rev 2826)
@@ -583,6 +583,8 @@
                 if (this.aMaps[i].arch == 'Generic') {
                     var oLayer = this.aMaps[i].oLayerOL;
                     oLayer.serverResolutions = oLayer.resolutions;
+                    // We need to set new resolutions to null because the resolutions of each Map may be not same e.g. Google and Bing map.
+                    newResolutions = null;
                     if (newResolutions == null) {
                         newResolutions = [];
                         for (var j = 0; j < oLayer.serverResolutions.length; j++) {



More information about the fusion-commits mailing list