Karte: Leaflet-Attribution entfernen, nur OSM-Text
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ea670310e2
commit
7358a28cc7
1 changed files with 7 additions and 3 deletions
|
|
@ -114,13 +114,17 @@ window.Page_poison = (() => {
|
||||||
const mapEl = document.getElementById('poison-map');
|
const mapEl = document.getElementById('poison-map');
|
||||||
if (!mapEl || !window.L || _map) return;
|
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
|
.setView([51.1657, 10.4515], 6); // Deutschland-Mitte
|
||||||
|
|
||||||
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
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);
|
}).addTo(_map);
|
||||||
|
|
||||||
|
// OSM-Pflichtangabe ohne externe Links
|
||||||
|
L.control.attribution({ prefix: false })
|
||||||
|
.addAttribution('© OpenStreetMap-Mitwirkende')
|
||||||
|
.addTo(_map);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------
|
// ----------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue