From 988cffcbd4d797a866742695480c00193b2338f2 Mon Sep 17 00:00:00 2001 From: rene Date: Fri, 24 Apr 2026 11:19:40 +0200 Subject: [PATCH] =?UTF-8?q?Karte=20refresh():=20=5FscheduleOsmLoad()=20auf?= =?UTF-8?q?rufen=20=E2=80=94=20OSM-Marker=20nach=20Seitenwechsel=20ohne=20?= =?UTF-8?q?Pan,=20SW=20by-v335?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/static/js/app.js | 2 +- backend/static/js/pages/map.js | 4 ++-- backend/static/sw.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 324eb52..13d2aa3 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 = '321'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '322'; // ← 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 b6a668f..3c5fad5 100644 --- a/backend/static/js/pages/map.js +++ b/backend/static/js/pages/map.js @@ -157,8 +157,8 @@ window.Page_map = (() => { function refresh() { // Leaflet kennt die Container-Größe nach Seitenwechsel nicht — neu berechnen - setTimeout(() => _map?.invalidateSize(), 100); - setTimeout(() => _map?.invalidateSize(), 500); + setTimeout(() => { _map?.invalidateSize(); _scheduleOsmLoad(); }, 150); + setTimeout(() => _map?.invalidateSize(), 600); _loadAll(); } function onDogChange() {} diff --git a/backend/static/sw.js b/backend/static/sw.js index 5ba64e6..f9b318c 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-v334'; +const CACHE_VERSION = 'by-v335'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten