diff --git a/backend/static/js/pages/poison.js b/backend/static/js/pages/poison.js index 5f2559a..7919397 100644 --- a/backend/static/js/pages/poison.js +++ b/backend/static/js/pages/poison.js @@ -114,13 +114,17 @@ window.Page_poison = (() => { const mapEl = document.getElementById('poison-map'); if (!mapEl || !window.L || _map) return; - _map = L.map('poison-map', { zoomControl: true }) + _map = L.map('poison-map', { zoomControl: true, attributionControl: false }) .setView([51.1657, 10.4515], 6); // Deutschland-Mitte L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { - attribution : '© OpenStreetMap', - maxZoom : 19, + maxZoom: 19, }).addTo(_map); + + // OSM-Pflichtangabe ohne externe Links + L.control.attribution({ prefix: false }) + .addAttribution('© OpenStreetMap-Mitwirkende') + .addTo(_map); } // ----------------------------------------------------------