Karte: invalidateSize() in refresh() — leere Karte nach Seitenwechsel, SW by-v334

This commit is contained in:
rene 2026-04-24 11:07:22 +02:00
parent e0b4914e20
commit 005552042d
3 changed files with 8 additions and 3 deletions

View file

@ -155,7 +155,12 @@ window.Page_map = (() => {
});
}
function refresh() { _loadAll(); }
function refresh() {
// Leaflet kennt die Container-Größe nach Seitenwechsel nicht — neu berechnen
setTimeout(() => _map?.invalidateSize(), 100);
setTimeout(() => _map?.invalidateSize(), 500);
_loadAll();
}
function onDogChange() {}
// ----------------------------------------------------------