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

@@ -186,6 +186,11 @@ class Attribution extends Control {
continue;
}
const collapsible = source.getAttributionsCollapsible();
if (collapsible !== undefined && !collapsible) {
this.setCollapsible(collapsible);
}
if (Array.isArray(attributions)) {
for (let j = 0, jj = attributions.length; j < jj; ++j) {
if (!(attributions[j] in lookup)) {