Skip to content

Commit

Permalink
fix osm attribution on map page
Browse files Browse the repository at this point in the history
  • Loading branch information
gluap committed May 19, 2024
1 parent 33e9e1c commit d15ea61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion content/map/_index.de.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ In vielen Regionen gibt es schon OpenBikeSensoren! Suchst du Gleichgesinnte
oder Ansprechpartner in deiner Gegend? Die Karte hilft dir dabei. Möchtest du
selbst oder deine Initiative noch auf der Karte auftauchen? [Im
Forum](https://forum.openbikesensor.org/t/karte-der-lokalinitiativen-und-nutzer/389)
erfährst du, wie!
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.

<div class="container full-width" style="height: calc(100vh - 160px);">
<iframe src="/map/map.html" width="100%" height="100%">
Expand Down
5 changes: 4 additions & 1 deletion content/map/map.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@
'darkmatter.json',
zoom: 6,
center: [10.0,51.0],
attributionControl: {customAttribution: 'Map data <A HREF="https://www.openstreetmap.org/copyright">©️OpenStreetMap</A> contributors'},
});

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


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

0 comments on commit d15ea61

Please sign in to comment.