From 756f63e212d386810a52b6cca0196b33cdd2ba07 Mon Sep 17 00:00:00 2001 From: ahocevar Date: Wed, 17 Apr 2019 09:06:37 -0700 Subject: [PATCH] Add attributionsCollapsible option to source/VectorTile --- src/ol/source/VectorTile.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ol/source/VectorTile.js b/src/ol/source/VectorTile.js index c834e5b998..8ba2db678e 100644 --- a/src/ol/source/VectorTile.js +++ b/src/ol/source/VectorTile.js @@ -19,6 +19,7 @@ import {equals} from '../array.js'; /** * @typedef {Object} Options * @property {import("./Source.js").AttributionLike} [attributions] Attributions. + * @property {boolean} [attributionsCollapsible=true] Attributions are collapsible. * @property {number} [cacheSize=128] Cache size. * @property {import("../extent.js").Extent} [extent] * @property {import("../format/Feature.js").default} [format] Feature format for tiles. Used and required by the default. @@ -97,6 +98,7 @@ class VectorTile extends UrlTile { super({ attributions: options.attributions, + attributionsCollapsible: options.attributionsCollapsible, cacheSize: options.cacheSize, opaque: false, projection: projection,