Skip to content

Commit d15ea61

Browse files
committed
fix osm attribution on map page
1 parent 33e9e1c commit d15ea61

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

content/map/_index.de.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ In vielen Regionen gibt es schon OpenBikeSensoren! Suchst du Gleichgesinnte
1414
oder Ansprechpartner in deiner Gegend? Die Karte hilft dir dabei. Möchtest du
1515
selbst oder deine Initiative noch auf der Karte auftauchen? [Im
1616
Forum](https://forum.openbikesensor.org/t/karte-der-lokalinitiativen-und-nutzer/389)
17-
erfährst du, wie!
17+
erfährst du, wie! Alternativ kannst du [hier](https://github.com/openbikesensor/openbikesensor.github.io/blob/main/content/map/) einen Pull request für die ``initiativen.json`` oder ``einzelpersonen.json`` unterbringen.
1818

1919
<div class="container full-width" style="height: calc(100vh - 160px);">
2020
<iframe src="/map/map.html" width="100%" height="100%">

content/map/map.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@
3232
'darkmatter.json',
3333
zoom: 6,
3434
center: [10.0,51.0],
35-
attributionControl: {customAttribution: 'Map data <A HREF="https://www.openstreetmap.org/copyright">©️OpenStreetMap</A> contributors'},
3635
});
3736

37+
map.addControl(new maplibregl.AttributionControl({
38+
customAttribution: '<A HREF="https://www.openstreetmap.org/copyright">&copy; OpenStreetMap</A> contributors.'
39+
}),'top-left');
40+
3841

3942
map.on('load', async () => {
4043
// Add an image to use as a custom marker

0 commit comments

Comments
 (0)