From 4d0cd0f460e799aad33da52c6e2ab51b578e5ac4 Mon Sep 17 00:00:00 2001 From: rene Date: Fri, 5 Jun 2026 11:01:09 +0200 Subject: [PATCH] =?UTF-8?q?Karten-Fix:=20fraktionalen=20MapLibre-Zoom=20f?= =?UTF-8?q?=C3=BCr=20Scan-Schwelle=20runden?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MapLibre-Zoom ist kontinuierlich (13.7); Statusleiste rundet (zeigt Z14), Scan verglich roh → bei angezeigtem Z14 (echt 13.x) galt zoom<14 → Marker gecleart, erst ab Z15 sichtbar. Jetzt Math.round(getZoom()) für die 10/14-Schwellen (wie die Anzeige). Leaflet unverändert (ganzzahlig). --- VERSION | 2 +- backend/static/index.html | 24 ++++++++++++------------ backend/static/js/app.js | 2 +- backend/static/js/pages/map.js | 5 ++++- backend/static/landing.html | 2 +- backend/static/sw.js | 2 +- 6 files changed, 20 insertions(+), 17 deletions(-) diff --git a/VERSION b/VERSION index 57f15ec..95fa1c9 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1185 \ No newline at end of file +1186 \ No newline at end of file diff --git a/backend/static/index.html b/backend/static/index.html index e0c7fd3..5c65e72 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -86,14 +86,14 @@ Ban Yaro - + - - - - - + + + + + @@ -617,11 +617,11 @@ - - - - - + + + + + @@ -631,7 +631,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index f8d05d1..53b1ef2 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 = '1185'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '1186'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.6.0'; // ← semantische Version, wird bei make release gesetzt window.APP_VER = APP_VER; // global verfügbar für andere Module (z.B. offline-indicator) window.APP_VERSION = APP_VERSION; diff --git a/backend/static/js/pages/map.js b/backend/static/js/pages/map.js index b7e17fa..8e693fa 100644 --- a/backend/static/js/pages/map.js +++ b/backend/static/js/pages/map.js @@ -1268,7 +1268,10 @@ window.Page_map = (() => { // Sonst gehen bei schnellen Zoom-/Pan-Folgen (z.B. Z16→Z13→Z14) Scans verloren → keine Marker. if (_overpassActive) { _scanQueued = true; return; } if (!_engineGL && !window.L) return; - const zoom = _mapGetZoom(); + // MapLibre hat fraktionalen Zoom (z.B. 13.7) — auf ganze Stufe runden, damit die + // Schwellen (10/14) der angezeigten Zoomstufe (Statusleiste rundet ebenso) entsprechen. + // Sonst verschwinden Marker bei angezeigtem Z14, wenn der echte Zoom 13.x ist. + const zoom = Math.round(_mapGetZoom()); // Unter Zoom 10: alles ausblenden if (zoom < 10) { diff --git a/backend/static/landing.html b/backend/static/landing.html index 7cf9124..85bac3f 100644 --- a/backend/static/landing.html +++ b/backend/static/landing.html @@ -4,7 +4,7 @@ - + Ban Yaro — Die Hunde-App für Deutschland, Österreich & Schweiz diff --git a/backend/static/sw.js b/backend/static/sw.js index de16275..393ee97 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -4,7 +4,7 @@ ============================================================ */ // ← EINZIGE Stelle für die Version — STATIC_ASSETS und CACHE_VERSION leiten sich ab -const VER = '1185'; +const VER = '1186'; const CACHE_VERSION = `by-v${VER}`; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten