[fusion-commits] r2893 - trunk/lib

svn_fusion at osgeo.org svn_fusion at osgeo.org
Wed Mar 18 22:59:38 PDT 2015


Author: liuar
Date: 2015-03-18 22:59:38 -0700 (Wed, 18 Mar 2015)
New Revision: 2893

Modified:
   trunk/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: trunk/lib/Map.js
===================================================================
--- trunk/lib/Map.js	2015-03-19 05:57:18 UTC (rev 2892)
+++ trunk/lib/Map.js	2015-03-19 05:59:38 UTC (rev 2893)
@@ -602,6 +602,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