Karte: Attribution per JS aus DOM entfernen
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
c695f5f639
commit
a256568c0c
1 changed files with 5 additions and 0 deletions
|
|
@ -132,6 +132,11 @@ window.Page_poison = (() => {
|
||||||
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||||
maxZoom: 19,
|
maxZoom: 19,
|
||||||
}).addTo(_map);
|
}).addTo(_map);
|
||||||
|
|
||||||
|
// Attribution-Elemente aus dem DOM entfernen (doppelt sicher)
|
||||||
|
setTimeout(() => {
|
||||||
|
document.querySelectorAll('.leaflet-control-attribution').forEach(el => el.remove());
|
||||||
|
}, 300);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------
|
// ----------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue