diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index 3e18a80b06..8ba484fc00 100644 --- a/src/objectliterals.jsdoc +++ b/src/objectliterals.jsdoc @@ -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. */ /** diff --git a/src/ol/source/bingmapssource.js b/src/ol/source/bingmapssource.js index 7b75a68b3c..29b3b456ea 100644 --- a/src/ol/source/bingmapssource.js +++ b/src/ol/source/bingmapssource.js @@ -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 }); /**