Allow tileLoadFunction override for ol.source.WMTS

This commit is contained in:
Frederic Junod
2013-09-23 13:46:26 +02:00
parent 980d311680
commit 4614a43d48
2 changed files with 3 additions and 0 deletions

View File

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

View File

@@ -179,6 +179,7 @@ ol.source.WMTS = function(options) {
extent: options.extent,
projection: options.projection,
tileGrid: tileGrid,
tileLoadFunction: options.tileLoadFunction,
tileUrlFunction: tileUrlFunction
});