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