[fusion-commits] r2892 - sandbox/adsk/3.0m/lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Wed Mar 18 22:57:18 PDT 2015
Author: liuar
Date: 2015-03-18 22:57:18 -0700 (Wed, 18 Mar 2015)
New Revision: 2892
Modified:
sandbox/adsk/3.0m/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/3.0m/lib/Map.js
===================================================================
--- sandbox/adsk/3.0m/lib/Map.js 2015-03-09 01:22:07 UTC (rev 2891)
+++ sandbox/adsk/3.0m/lib/Map.js 2015-03-19 05:57:18 UTC (rev 2892)
@@ -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