Merge pull request #9439 from ahocevar/vectortile-attributions

Add attributionsCollapsible option to source/VectorTile
This commit is contained in:
Andreas Hocevar
2019-04-18 07:36:50 -07:00
committed by GitHub

View File

@@ -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,