[fusion-commits] r2213 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Wed Sep 1 22:53:00 EDT 2010
Author: liuar
Date: 2010-09-02 02:52:59 +0000 (Thu, 02 Sep 2010)
New Revision: 2213
Modified:
trunk/widgets/BasemapSwitcher.js
Log:
Ticket #403 Add Google Terrain support in BasemapSwitcher widget
Modified: trunk/widgets/BasemapSwitcher.js
===================================================================
--- trunk/widgets/BasemapSwitcher.js 2010-08-31 10:26:37 UTC (rev 2212)
+++ trunk/widgets/BasemapSwitcher.js 2010-09-02 02:52:59 UTC (rev 2213)
@@ -43,6 +43,7 @@
'G_NORMAL_MAP': null,
'G_SATELLITE_MAP': null,
'G_HYBRID_MAP': null,
+ 'G_PHYSICAL_MAP': null,
'YAHOO_MAP_REG': null,
'YAHOO_MAP_SAT': null,
'YAHOO_MAP_HYB': null,
@@ -99,6 +100,13 @@
this.options['G_HYBRID_MAP'] = "Google Hybrid";
this.baseMaps['G_HYBRID_MAP'] = map;
break;
+ case 'G_PHYSICAL_MAP':
+ if (map.mapTag.extension.Options[0].name)
+ this.options['G_PHYSICAL_MAP'] = map.mapTag.extension.Options[0].name[0];
+ else
+ this.options['G_PHYSICAL_MAP'] = "Google Terrain";
+ this.baseMaps['G_PHYSICAL_MAP'] = map;
+ break;
default:
break;
}
More information about the fusion-commits
mailing list