Karte: invalidateSize() in refresh() — leere Karte nach Seitenwechsel, SW by-v334
This commit is contained in:
parent
e0b4914e20
commit
005552042d
3 changed files with 8 additions and 3 deletions
|
|
@ -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() {}
|
||||
|
||||
// ----------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue