From 76cb784bd5a9387a8ede751038dd4d9f6a11c7f5 Mon Sep 17 00:00:00 2001 From: Julian Dehm Date: Thu, 14 Sep 2023 14:59:23 +0200 Subject: [PATCH] a4maps: fix map attribution not set for vector tile maps --- adhocracy4/maps/static/a4maps/a4maps_common.js | 2 ++ changelog/_2222.md | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 changelog/_2222.md diff --git a/adhocracy4/maps/static/a4maps/a4maps_common.js b/adhocracy4/maps/static/a4maps/a4maps_common.js index 28ad0a6cc..895adb2f5 100644 --- a/adhocracy4/maps/static/a4maps/a4maps_common.js +++ b/adhocracy4/maps/static/a4maps/a4maps_common.js @@ -101,6 +101,8 @@ export function createMap (L, e, { } const baselayer = L.tileLayer(basemap, { accessToken }) baselayer.addTo(map) + } + if (attribution) { map.attributionControl.addAttribution(attribution) } return map diff --git a/changelog/_2222.md b/changelog/_2222.md new file mode 100644 index 000000000..edd6441ae --- /dev/null +++ b/changelog/_2222.md @@ -0,0 +1,3 @@ +### Fixed + +- fix map attribution not being set for vector tile maps if loaded from settings