Allow tileLoadFunction override for ol.source.WMTS
This commit is contained in:
@@ -640,6 +640,8 @@
|
||||
* @property {Object|undefined} dimensions Dimensions.
|
||||
* @property {string|undefined} url URL.
|
||||
* @property {number|undefined} maxZoom Maximum zoom.
|
||||
* @property {ol.TileLoadFunctionType|undefined} tileLoadFunction Optional
|
||||
* function to load a tile given a URL.
|
||||
* @property {Array.<string>|undefined} urls Urls.
|
||||
*/
|
||||
|
||||
|
||||
@@ -179,6 +179,7 @@ ol.source.WMTS = function(options) {
|
||||
extent: options.extent,
|
||||
projection: options.projection,
|
||||
tileGrid: tileGrid,
|
||||
tileLoadFunction: options.tileLoadFunction,
|
||||
tileUrlFunction: tileUrlFunction
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user