feat: add imprint to map

This commit is contained in:
relikd
2024-07-22 20:36:09 +02:00
parent 63af94ab0d
commit d009d3ab3a
2 changed files with 6 additions and 3 deletions

View File

@@ -230,7 +230,10 @@ function setDetailMarker(place) {
async function initMainMap() {
const osm = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
attribution: [
'© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
'<a href="" onclick="return showNotice(\'imprint\')">Impressum</a>',
].join(' | '),
});
const map = L.map('map', {
layers: [osm],