From 9fcd057c1e9beb66941657143cbf2a62f375eefc Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 24 Sep 2013 09:31:31 +0200 Subject: [PATCH] Allow tileLoadFunction override for ol.source.Stamen --- src/objectliterals.jsdoc | 2 ++ src/ol/source/stamensource.js | 1 + 2 files changed, 3 insertions(+) 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 });