Rename ol.source.BingMapsOptions style property to imagerySet

To match the Bing Maps terminology
This commit is contained in:
Frederic Junod
2013-11-13 10:49:14 +01:00
parent 0814b2c5c6
commit e508be66d9
8 changed files with 9 additions and 9 deletions

View File

@@ -14,7 +14,7 @@ for (var i = 0; i < styles.length; ++i) {
preload: Infinity, preload: Infinity,
source: new ol.source.BingMaps({ source: new ol.source.BingMaps({
key: 'Ak-dzM4wZjSqTlzveKz5u0d4IQ4bRzVI309GxmkgSVr1ewS6iPSrOvOKhA-CJlm3', key: 'Ak-dzM4wZjSqTlzveKz5u0d4IQ4bRzVI309GxmkgSVr1ewS6iPSrOvOKhA-CJlm3',
style: styles[i] imagerySet: styles[i]
}) })
})); }));
} }

View File

@@ -20,7 +20,7 @@ var map = new ol.Map({
new ol.layer.Tile({ new ol.layer.Tile({
source: new ol.source.BingMaps({ source: new ol.source.BingMaps({
key: 'Ak-dzM4wZjSqTlzveKz5u0d4IQ4bRzVI309GxmkgSVr1ewS6iPSrOvOKhA-CJlm3', key: 'Ak-dzM4wZjSqTlzveKz5u0d4IQ4bRzVI309GxmkgSVr1ewS6iPSrOvOKhA-CJlm3',
style: 'Aerial' imagerySet: 'Aerial'
}) })
}) })
], ],

View File

@@ -20,7 +20,7 @@ var map = new ol.Map({
new ol.layer.Tile({ new ol.layer.Tile({
source: new ol.source.BingMaps({ source: new ol.source.BingMaps({
key: 'Ak-dzM4wZjSqTlzveKz5u0d4IQ4bRzVI309GxmkgSVr1ewS6iPSrOvOKhA-CJlm3', key: 'Ak-dzM4wZjSqTlzveKz5u0d4IQ4bRzVI309GxmkgSVr1ewS6iPSrOvOKhA-CJlm3',
style: 'Aerial' imagerySet: 'Aerial'
}) })
}) })
], ],

View File

@@ -26,7 +26,7 @@ if (!ol.webgl.SUPPORTED) {
var layer = new ol.layer.Tile({ var layer = new ol.layer.Tile({
source: new ol.source.BingMaps({ source: new ol.source.BingMaps({
key: 'Ak-dzM4wZjSqTlzveKz5u0d4IQ4bRzVI309GxmkgSVr1ewS6iPSrOvOKhA-CJlm3', key: 'Ak-dzM4wZjSqTlzveKz5u0d4IQ4bRzVI309GxmkgSVr1ewS6iPSrOvOKhA-CJlm3',
style: 'Aerial' imagerySet: 'Aerial'
}) })
}); });

View File

@@ -16,7 +16,7 @@ var map = new ol.Map({
new ol.layer.Tile({ new ol.layer.Tile({
source: new ol.source.BingMaps({ source: new ol.source.BingMaps({
key: 'Ak-dzM4wZjSqTlzveKz5u0d4IQ4bRzVI309GxmkgSVr1ewS6iPSrOvOKhA-CJlm3', key: 'Ak-dzM4wZjSqTlzveKz5u0d4IQ4bRzVI309GxmkgSVr1ewS6iPSrOvOKhA-CJlm3',
style: 'Road' imagerySet: 'Road'
}) })
}) })
], ],

View File

@@ -11,7 +11,7 @@ var map1 = new ol.Map({
preload: Infinity, preload: Infinity,
source: new ol.source.BingMaps({ source: new ol.source.BingMaps({
key: 'Ak-dzM4wZjSqTlzveKz5u0d4IQ4bRzVI309GxmkgSVr1ewS6iPSrOvOKhA-CJlm3', key: 'Ak-dzM4wZjSqTlzveKz5u0d4IQ4bRzVI309GxmkgSVr1ewS6iPSrOvOKhA-CJlm3',
style: 'Aerial' imagerySet: 'Aerial'
}) })
}) })
], ],
@@ -29,7 +29,7 @@ var map2 = new ol.Map({
preload: 0, // default value preload: 0, // default value
source: new ol.source.BingMaps({ source: new ol.source.BingMaps({
key: 'Ak-dzM4wZjSqTlzveKz5u0d4IQ4bRzVI309GxmkgSVr1ewS6iPSrOvOKhA-CJlm3', key: 'Ak-dzM4wZjSqTlzveKz5u0d4IQ4bRzVI309GxmkgSVr1ewS6iPSrOvOKhA-CJlm3',
style: 'AerialWithLabels' imagerySet: 'AerialWithLabels'
}) })
}) })
], ],

View File

@@ -590,7 +590,7 @@
* @property {string|undefined} culture Culture. * @property {string|undefined} culture Culture.
* @property {string} key Bing Maps API key. Get yours at * @property {string} key Bing Maps API key. Get yours at
* http://bingmapsportal.com/. * http://bingmapsportal.com/.
* @property {string} style Style. * @property {string} imagerySet Type of imagery.
* @property {ol.TileLoadFunctionType|undefined} tileLoadFunction Optional * @property {ol.TileLoadFunctionType|undefined} tileLoadFunction Optional
* function to load a tile given a URL. * function to load a tile given a URL.
* @todo stability experimental * @todo stability experimental

View File

@@ -38,7 +38,7 @@ ol.source.BingMaps = function(options) {
this.culture_ = goog.isDef(options.culture) ? options.culture : 'en-us'; this.culture_ = goog.isDef(options.culture) ? options.culture : 'en-us';
var uri = new goog.Uri( var uri = new goog.Uri(
'//dev.virtualearth.net/REST/v1/Imagery/Metadata/' + options.style); '//dev.virtualearth.net/REST/v1/Imagery/Metadata/' + options.imagerySet);
var jsonp = new goog.net.Jsonp(uri, 'jsonp'); var jsonp = new goog.net.Jsonp(uri, 'jsonp');
jsonp.send({ jsonp.send({
'include': 'ImageryProviders', 'include': 'ImageryProviders',