Allow tileLoadFunction override for ol.source.Stamen

This commit is contained in:
Frederic Junod
2013-09-24 09:31:31 +02:00
parent 4614a43d48
commit 9fcd057c1e
2 changed files with 3 additions and 0 deletions

View File

@@ -540,6 +540,8 @@
* @property {number|undefined} minZoom Minimum zoom. * @property {number|undefined} minZoom Minimum zoom.
* @property {number|undefined} maxZoom Maximum zoom. * @property {number|undefined} maxZoom Maximum zoom.
* @property {boolean|undefined} opaque Whether the layer is opaque. * @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. * @property {string|undefined} url URL.
*/ */

View File

@@ -103,6 +103,7 @@ ol.source.Stamen = function(options) {
// FIXME uncomment the following when tilegrid supports minZoom // FIXME uncomment the following when tilegrid supports minZoom
//minZoom: providerConfig.minZoom, //minZoom: providerConfig.minZoom,
opaque: layerConfig.opaque, opaque: layerConfig.opaque,
tileLoadFunction: options.tileLoadFunction,
url: url url: url
}); });