Karte: Leaflet-Attribution entfernen, nur OSM-Text

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
rene 2026-04-12 18:00:37 +02:00
parent ea670310e2
commit 7358a28cc7

View file

@ -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 : '© <a href="https://openstreetmap.org">OpenStreetMap</a>',
maxZoom : 19,
maxZoom: 19,
}).addTo(_map);
// OSM-Pflichtangabe ohne externe Links
L.control.attribution({ prefix: false })
.addAttribution('© OpenStreetMap-Mitwirkende')
.addTo(_map);
}
// ----------------------------------------------------------