From 0401aed6e3c1d319aaa817ec73bab6054b486f99 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Mon, 11 Mar 2019 08:34:42 +0100 Subject: [PATCH] Add transition options to Stamen source --- src/ol/source/Stamen.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ol/source/Stamen.js b/src/ol/source/Stamen.js index 04f17bd558..0993ad3642 100644 --- a/src/ol/source/Stamen.js +++ b/src/ol/source/Stamen.js @@ -103,6 +103,8 @@ const ProviderConfig = { * imageTile.getImage().src = src; * }; * ``` + * @property {number} [transition] Duration of the opacity transition for rendering. + * To disable the opacity transition, pass `transition: 0`. * @property {string} [url] URL template. Must include `{x}`, `{y}` or `{-y}`, and `{z}` placeholders. * @property {boolean} [wrapX=true] Whether to wrap the world horizontally. */ @@ -137,6 +139,7 @@ class Stamen extends XYZ { opaque: layerConfig.opaque, reprojectionErrorThreshold: options.reprojectionErrorThreshold, tileLoadFunction: options.tileLoadFunction, + transition: options.transition, url: url, wrapX: options.wrapX });