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
|
|
@ -3,7 +3,7 @@
|
|||
Router, State-Management, Navigation, Initialisierung.
|
||||
============================================================ */
|
||||
|
||||
const APP_VER = '320'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
const APP_VER = '321'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
|
||||
|
||||
const App = (() => {
|
||||
|
||||
|
|
|
|||
|
|
@ -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() {}
|
||||
|
||||
// ----------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
Offline-Cache + Push Notifications + Tile-Cache
|
||||
============================================================ */
|
||||
|
||||
const CACHE_VERSION = 'by-v333';
|
||||
const CACHE_VERSION = 'by-v334';
|
||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue