Add possibility to disable collapsible attributions from Source

This commit is contained in:
Bobo Häggström
2018-10-11 14:11:56 +02:00
parent da41515944
commit 2f4d31c8f4
7 changed files with 33 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ import {createXYZ, extentFromProjection} from '../tilegrid.js';
/**
* @typedef {Object} Options
* @property {import("./Source.js").AttributionLike} [attributions] Attributions.
* @property {boolean} [attributionsCollapsible] Whether attributions should be collapsible.
* @property {number} [cacheSize=2048] Cache size.
* @property {null|string} [crossOrigin] The `crossOrigin` attribute for loaded images. Note that
* you must provide a `crossOrigin` value if you are using the WebGL renderer or if you want to
@@ -93,7 +94,8 @@ class XYZ extends TileImage {
url: options.url,
urls: options.urls,
wrapX: options.wrapX !== undefined ? options.wrapX : true,
transition: options.transition
transition: options.transition,
attributionsCollapsible: options.attributionsCollapsible
});
}