[fusion-commits] r3003 - in trunk: layers/Generic text widgets
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Mon Jun 26 07:16:06 PDT 2017
Author: jng
Date: 2017-06-26 07:16:06 -0700 (Mon, 26 Jun 2017)
New Revision: 3003
Modified:
trunk/layers/Generic/Generic.js
trunk/text/en.json
trunk/widgets/BasemapSwitcher.js
Log:
#658: Add missing support for AerialsWithLabels base layer type in the current version Bing Maps. This was formerly known as the "Hybrid" base layer type in older versions of Bing Maps.
Modified: trunk/layers/Generic/Generic.js
===================================================================
--- trunk/layers/Generic/Generic.js 2017-06-21 14:51:46 UTC (rev 3002)
+++ trunk/layers/Generic/Generic.js 2017-06-26 14:16:06 UTC (rev 3003)
@@ -141,6 +141,9 @@
case 'a':
this.mapTag.layerOptions.type = 'Aerial';
break;
+ case 'AerialWithLabels':
+ this.mapTag.layerOptions.type = 'AerialWithLabels';
+ break;
default:
this.mapTag.layerOptions.type = 'Road';
break;
Modified: trunk/text/en.json
===================================================================
--- trunk/text/en.json 2017-06-21 14:51:46 UTC (rev 3002)
+++ trunk/text/en.json 2017-06-26 14:16:06 UTC (rev 3003)
@@ -82,7 +82,7 @@
'yahooHybrid':'Yahoo Hybrid',
'bingStreet':'Bing Street',
'bingSatellite':'Bing Satellite',
-'bingHybrid':'Bing Hybrid',
+'bingAerialsWithLabels':'Bing Satellite (with labels)',
'openStreetMap':'Open Street Map',
'openStreetMapTransportMap':'Open Street Map (TransportMap)',
'openStreetMapCycleMap':'Open Street Map (CycleMap)',
Modified: trunk/widgets/BasemapSwitcher.js
===================================================================
--- trunk/widgets/BasemapSwitcher.js 2017-06-21 14:51:46 UTC (rev 3002)
+++ trunk/widgets/BasemapSwitcher.js 2017-06-26 14:16:06 UTC (rev 3003)
@@ -25,8 +25,8 @@
* - OpenStreetMap CycleMap
* - OpenStreetMap Transport
* - Bing Street
- * - Bing Satellite
- * - Bing Hybrid
+ * - Bing Aerials
+ * - Bing Aerials (with labels)
* - Stamen Toner
* - Stamen Watercolor
* - Stamen Terrain
@@ -55,7 +55,7 @@
'G_PHYSICAL_MAP': 0,
'Road': -1,
'Aerial': -1,
- 'Hybrid': -1,
+ 'AerialWithLabels': -1,
'Mapnik': 0,
'TransportMap': 0,
'CycleMap': 0,
@@ -78,7 +78,7 @@
'G_PHYSICAL_MAP': null,
'Road': null,
'Aerial': null,
- 'Hybrid': null,
+ 'AerialWithLabels': null,
'Mapnik': null,
'TransportMap': null,
'CycleMap': null,
@@ -188,14 +188,14 @@
}
this.baseMaps['Aerial'] = map;
break;
- case 'Hybrid':
+ case 'AerialWithLabels':
if (map.mapTag.extension.Options[0].name) {
- this.options['Hybrid'] = map.mapTag.extension.Options[0].name[0];
+ this.options['AerialWithLabels'] = map.mapTag.extension.Options[0].name[0];
}
else {
- this.options['Hybrid'] = OpenLayers.i18n('bingHybrid');
+ this.options['AerialWithLabels'] = OpenLayers.i18n('bingAerialsWithLabels');
}
- this.baseMaps['Hybrid'] = map;
+ this.baseMaps['AerialWithLabels'] = map;
break;
default:
break;
More information about the fusion-commits
mailing list