Karte: Attribution per style-Injection verstecken (cache-sicher)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a256568c0c
commit
2baba57941
1 changed files with 7 additions and 4 deletions
|
|
@ -133,10 +133,13 @@ window.Page_poison = (() => {
|
||||||
maxZoom: 19,
|
maxZoom: 19,
|
||||||
}).addTo(_map);
|
}).addTo(_map);
|
||||||
|
|
||||||
// Attribution-Elemente aus dem DOM entfernen (doppelt sicher)
|
// Attribution komplett unterdrücken — per Style-Injection (cache-sicher)
|
||||||
setTimeout(() => {
|
if (!document.getElementById('leaflet-attribution-hide')) {
|
||||||
document.querySelectorAll('.leaflet-control-attribution').forEach(el => el.remove());
|
const s = document.createElement('style');
|
||||||
}, 300);
|
s.id = 'leaflet-attribution-hide';
|
||||||
|
s.textContent = '.leaflet-control-attribution { display: none !important; }';
|
||||||
|
document.head.appendChild(s);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------
|
// ----------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue