mirror of
https://github.com/maptiler/tileserver-gl.git
synced 2024-09-11 12:05:41 +03:00
don't include duplicate attributions (#613)
This commit is contained in:
parent
edd36dd251
commit
7cfcc413c4
@ -792,10 +792,12 @@ module.exports = {
|
|||||||
|
|
||||||
if (!attributionOverride &&
|
if (!attributionOverride &&
|
||||||
source.attribution && source.attribution.length > 0) {
|
source.attribution && source.attribution.length > 0) {
|
||||||
if (tileJSON.attribution.length > 0) {
|
if (!tileJSON.attribution.includes(source.attribution)) {
|
||||||
tileJSON.attribution += '; ';
|
if (tileJSON.attribution.length > 0) {
|
||||||
|
tileJSON.attribution += ' | ';
|
||||||
|
}
|
||||||
|
tileJSON.attribution += source.attribution;
|
||||||
}
|
}
|
||||||
tileJSON.attribution += source.attribution;
|
|
||||||
}
|
}
|
||||||
resolve();
|
resolve();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user