Allow tileLoadFunction override for ol.source.TileJSON
This commit is contained in:
@@ -559,6 +559,8 @@
|
||||
* @typedef {Object} ol.source.TileJSONOptions
|
||||
* @property {null|string|undefined} crossOrigin crossOriin setting for image
|
||||
* requests.
|
||||
* @property {ol.TileLoadFunctionType|undefined} tileLoadFunction Optional
|
||||
* function to load a tile given a URL.
|
||||
* @property {string} url URL.
|
||||
*/
|
||||
|
||||
|
||||
@@ -45,7 +45,8 @@ ol.source.TileJSON = function(options) {
|
||||
|
||||
goog.base(this, {
|
||||
crossOrigin: options.crossOrigin,
|
||||
projection: ol.proj.get('EPSG:3857')
|
||||
projection: ol.proj.get('EPSG:3857'),
|
||||
tileLoadFunction: options.tileLoadFunction
|
||||
});
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user