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
|
* @property {string} key Bing Maps API key. Get yours at
|
||||||
* http://bingmapsportal.com/.
|
* http://bingmapsportal.com/.
|
||||||
* @property {string} style Style.
|
* @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, {
|
goog.base(this, {
|
||||||
crossOrigin: 'anonymous',
|
crossOrigin: 'anonymous',
|
||||||
opaque: true,
|
opaque: true,
|
||||||
projection: ol.proj.get('EPSG:3857')
|
projection: ol.proj.get('EPSG:3857'),
|
||||||
|
tileLoadFunction: options.tileLoadFunction
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user