diff --git a/backend/static/js/app.js b/backend/static/js/app.js index c170753..324eb52 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -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 = (() => { diff --git a/backend/static/js/pages/map.js b/backend/static/js/pages/map.js index ba1bc79..b6a668f 100644 --- a/backend/static/js/pages/map.js +++ b/backend/static/js/pages/map.js @@ -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() {} // ---------------------------------------------------------- diff --git a/backend/static/sw.js b/backend/static/sw.js index 9921cfb..5ba64e6 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -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