diff --git a/src/objectliterals.jsdoc b/src/objectliterals.jsdoc index 89dcb50726..fa3742c684 100644 --- a/src/objectliterals.jsdoc +++ b/src/objectliterals.jsdoc @@ -540,6 +540,8 @@ * @property {number|undefined} minZoom Minimum zoom. * @property {number|undefined} maxZoom Maximum zoom. * @property {boolean|undefined} opaque Whether the layer is opaque. + * @property {ol.TileLoadFunctionType|undefined} tileLoadFunction Optional + * function to load a tile given a URL. * @property {string|undefined} url URL. */ diff --git a/src/ol/source/stamensource.js b/src/ol/source/stamensource.js index 1486aa0d98..27bc6eb90e 100644 --- a/src/ol/source/stamensource.js +++ b/src/ol/source/stamensource.js @@ -103,6 +103,7 @@ ol.source.Stamen = function(options) { // FIXME uncomment the following when tilegrid supports minZoom //minZoom: providerConfig.minZoom, opaque: layerConfig.opaque, + tileLoadFunction: options.tileLoadFunction, url: url });