[fusion-commits] r2938 - trunk/widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Wed May 4 08:13:20 PDT 2016
Author: jng
Date: 2016-05-04 08:13:20 -0700 (Wed, 04 May 2016)
New Revision: 2938
Modified:
trunk/widgets/BasemapSwitcher.js
Log:
#647: Remove support for the long shut down Yahoo Maps service from BasemapSwitcher widget
Also clean up the documentation for this widget.
Modified: trunk/widgets/BasemapSwitcher.js
===================================================================
--- trunk/widgets/BasemapSwitcher.js 2016-05-04 14:32:55 UTC (rev 2937)
+++ trunk/widgets/BasemapSwitcher.js 2016-05-04 15:13:20 UTC (rev 2938)
@@ -16,10 +16,21 @@
* Class: Fusion.Widget.BasemapSwitcher
*
* A widget to allow selection of the basemaps display under the overlay MapGuide layer
- * Currently, Google Street, Google Satellite, Google Hybrid, Yahoo Street, Yahoo Satellite,
- * Yahoo Hybrid, OpenStreetMap Mapnik, OpenStreetMap Cycle, OpenStreetMap Transport,
- * Bing Street, Bing Satellite and Bing Hybrid is supported.
+ * Currently the following basemaps are supported:
*
+ * - Google Street
+ * - Google Satellite
+ * - Google Hybrid
+ * - OpenStreetMap Mapnik
+ * - OpenStreetMap CycleMap
+ * - OpenStreetMap Transport
+ * - Bing Street
+ * - Bing Satellite
+ * - Bing Hybrid
+ * - Stamen Toner
+ * - Stamen Watercolor
+ * - Stamen Terrain
+ *
* Inherits from:
* - <Fusion.Widget>
****************************************************************************/
@@ -42,9 +53,6 @@
'G_SATELLITE_MAP': 0,
'G_HYBRID_MAP': 0,
'G_PHYSICAL_MAP': 0,
- 'YAHOO_MAP_REG': 0,
- 'YAHOO_MAP_SAT': 0,
- 'YAHOO_MAP_HYB': 0,
'Road': -1,
'Aerial': -1,
'Hybrid': -1,
@@ -68,9 +76,6 @@
'G_SATELLITE_MAP': null,
'G_HYBRID_MAP': null,
'G_PHYSICAL_MAP': null,
- 'YAHOO_MAP_REG': null,
- 'YAHOO_MAP_SAT': null,
- 'YAHOO_MAP_HYB': null,
'Road': null,
'Aerial': null,
'Hybrid': null,
@@ -152,56 +157,6 @@
}
}
break;
-
- case 'Yahoo':
- // if user didn't indicate basemap types, use the default Yahoo Street
- if (!map.mapTag.extension.Options || !map.mapTag.extension.Options[0].type) {
- this.options['YAHOO_MAP_REG'] = OpenLayers.i18n('yahooStreet');
- this.baseMaps['YAHOO_MAP_REG'] = map;
-
- // The first non-MapGuide basemap will be the default basemap
- if (!this.defaultBasemap) {
- this.defaultBasemap = "YAHOO_MAP_REG";
- }
- }
- else {
- switch (map.mapTag.extension.Options[0].type[0]) {
- case 'YAHOO_MAP_REG':
- if (map.mapTag.extension.Options[0].name) {
- this.options['YAHOO_MAP_REG'] = map.mapTag.extension.Options[0].name[0];
- }
- else {
- this.options['YAHOO_MAP_REG'] = "Yahoo Street";
- }
- this.baseMaps['YAHOO_MAP_REG'] = map;
- break;
- case 'YAHOO_MAP_SAT':
- if (map.mapTag.extension.Options[0].name) {
- this.options['YAHOO_MAP_SAT'] = map.mapTag.extension.Options[0].name[0];
- }
- else {
- this.options['YAHOO_MAP_SAT'] = OpenLayers.i18n('yahooStreet');
- }
- this.baseMaps['YAHOO_MAP_SAT'] = map;
- break;
- case 'YAHOO_MAP_HYB':
- if (map.mapTag.extension.Options[0].name) {
- this.options['YAHOO_MAP_HYB'] = map.mapTag.extension.Options[0].name[0];
- }
- else {
- this.options['YAHOO_MAP_HYB'] = OpenLayers.i18n('yahooHybrid');
- }
- this.baseMaps['YAHOO_MAP_HYB'] = map;
- break;
- default:
- break;
- }
- // The first non-MapGuide basemap will be the default basemap
- if (!this.defaultBasemap) {
- this.defaultBasemap = map.mapTag.extension.Options[0].type[0];
- }
- }
- break;
case 'VirtualEarth':
// if user didn't indicate basemap types, use the default Bing Street
if (!map.mapTag.extension.Options || !map.mapTag.extension.Options[0].type) {
More information about the fusion-commits
mailing list