Skip to content

Commit

Permalink
a4maps: fix map attribution not set for vector tile maps
Browse files Browse the repository at this point in the history
  • Loading branch information
goapunk committed Sep 21, 2023
1 parent 8710f0d commit 21a8714
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adhocracy4/maps/static/a4maps/a4maps_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions changelog/_2222.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### Fixed

- fix map attribution not being set for vector tile maps if loaded from settings

0 comments on commit 21a8714

Please sign in to comment.