From 7358a28cc76339dba5f30458e2177ba533407ea8 Mon Sep 17 00:00:00 2001 From: rene Date: Sun, 12 Apr 2026 18:00:37 +0200 Subject: [PATCH] Karte: Leaflet-Attribution entfernen, nur OSM-Text Co-Authored-By: Claude Sonnet 4.6 --- backend/static/js/pages/poison.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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); } // ----------------------------------------------------------