Allow tileLoadFunction override for ol.source.BingMaps

This commit is contained in:
Frederic Junod
2013-09-23 13:34:53 +02:00
parent dd509ed39e
commit 5a99adfc68
2 changed files with 4 additions and 1 deletions

View File

@@ -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.
*/ */
/** /**

View File

@@ -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
}); });
/** /**