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,
|
||||
}).addTo(_map);
|
||||
|
||||
// Attribution-Elemente aus dem DOM entfernen (doppelt sicher)
|
||||
setTimeout(() => {
|
||||
document.querySelectorAll('.leaflet-control-attribution').forEach(el => el.remove());
|
||||
}, 300);
|
||||
// Attribution komplett unterdrücken — per Style-Injection (cache-sicher)
|
||||
if (!document.getElementById('leaflet-attribution-hide')) {
|
||||
const s = document.createElement('style');
|
||||
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