Allow tileLoadFunction override for ol.source.BingMaps
This commit is contained in:
@@ -492,6 +492,8 @@
|
||||
* @property {string} key Bing Maps API key. Get yours at
|
||||
* http://bingmapsportal.com/.
|
||||
* @property {string} style Style.
|
||||
* @property {ol.TileLoadFunctionType|undefined} tileLoadFunction Optional
|
||||
* function to load a tile given a URL.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
@@ -24,7 +24,8 @@ ol.source.BingMaps = function(options) {
|
||||
goog.base(this, {
|
||||
crossOrigin: 'anonymous',
|
||||
opaque: true,
|
||||
projection: ol.proj.get('EPSG:3857')
|
||||
projection: ol.proj.get('EPSG:3857'),
|
||||
tileLoadFunction: options.tileLoadFunction
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user