From 7d761bb342b6ffc8bc9527b1445858aca7e97348 Mon Sep 17 00:00:00 2001 From: rene Date: Fri, 5 Jun 2026 09:12:01 +0200 Subject: [PATCH] =?UTF-8?q?NOTAUS:=20Vektor-Basemap=20hart=20deaktiviert?= =?UTF-8?q?=20=E2=80=94=20protomaps-leaflet=20h=C3=A4ngt=20App=20auf=20dem?= =?UTF-8?q?=20Handy=20auf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Main-Thread-Rendering von protomaps-leaflet + App-Map-Logik blockiert UI-Thread. Greift auch bei localStorage-Flag=1. Performance erst lösen, dann reaktivieren. --- VERSION | 2 +- backend/static/index.html | 24 ++++++++++++------------ backend/static/js/app.js | 2 +- backend/static/js/ui.js | 6 ++++++ backend/static/landing.html | 2 +- backend/static/sw.js | 2 +- 6 files changed, 22 insertions(+), 16 deletions(-) diff --git a/VERSION b/VERSION index ac2fca5..d19618e 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1178 \ No newline at end of file +1179 \ No newline at end of file diff --git a/backend/static/index.html b/backend/static/index.html index f8bd4c2..78d55fd 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 50f24cd..9c378f5 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 = '1178'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '1179'; // ← 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/ui.js b/backend/static/js/ui.js index 8b7beb4..068f34b 100644 --- a/backend/static/js/ui.js +++ b/backend/static/js/ui.js @@ -872,7 +872,13 @@ const UI = (() => { // Feature-Flag Vektor-Basemap: ?vectormap=1/0 setzt localStorage 'by_vector_map'. // Default: auf Staging AN (Reifephase), auf Produktion AUS bis zur Freigabe. // Explizit überschreibbar per Flag (1=an, 0=aus) — gilt auch in der installierten PWA. + // NOTAUS 2026-06-05: Vektor-Basemap deaktiviert — protomaps-leaflet rendert auf dem + // Main-Thread und hängt auf dem Handy zusammen mit der App-Map-Logik die UI auf. + // Erst Performance lösen (z.B. maxzoom begrenzen / Style verschlanken / ggf. MapLibre), + // dann hier wieder freischalten. Greift hart, auch wenn localStorage-Flag='1' gesetzt ist. + const _VECTOR_BASEMAP_KILLED = true; function _vectorMapEnabled() { + if (_VECTOR_BASEMAP_KILLED) return false; try { const u = new URLSearchParams(location.search); if (u.has('vectormap')) { diff --git a/backend/static/landing.html b/backend/static/landing.html index 54ba165..1f4f444 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 971a58d..eaebe8e 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 = '1178'; +const VER = '1179'; const CACHE_VERSION = `by-v${VER}`; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten