Offline-Karten: Prod-Freigabe — Flag-Default AN auf allen deployten Hosts

Geraetetests Runde 1+2 bestanden (Basemap, Marker, Giftkoeder/Lost,
Funkloch-Lernen, Korridor, Coverage). Default analog by_map_gl:
banyaro.app/.de AN, localhost AUS, localStorage/?tilesoffline uebersteuert.
This commit is contained in:
rene 2026-06-06 12:21:11 +02:00
parent c0561c14b2
commit c18e24524a
2 changed files with 6 additions and 4 deletions

View file

@ -34,14 +34,15 @@
// Zentrale Feature-Flag-Helper (boot.js lädt vor allen Modulen) // Zentrale Feature-Flag-Helper (boot.js lädt vor allen Modulen)
// ---------------------------------------------------------- // ----------------------------------------------------------
window.BY = window.BY || {}; window.BY = window.BY || {};
// Offline-Vektorkacheln (byt://): Staging-Default AN seit 2026-06-06, Production AUS // Offline-Vektorkacheln (byt://): Default AN auf allen deployten Hosts (Prod + Staging),
// bis Freigabe; localStorage by_offline_tiles '1'/'0' bzw. ?tilesoffline übersteuert. // localhost bleibt AUS; localStorage by_offline_tiles '1'/'0' bzw. ?tilesoffline übersteuert.
// Prod-Freigabe René 2026-06-07 (analog by_map_gl, Gerätetests Runde 1+2 bestanden).
window.BY.offlineTiles = function () { window.BY.offlineTiles = function () {
try { try {
var flag = localStorage.getItem('by_offline_tiles'); var flag = localStorage.getItem('by_offline_tiles');
if (flag === '1') return true; if (flag === '1') return true;
if (flag === '0') return false; if (flag === '0') return false;
return location.hostname === 'staging.banyaro.app'; return /(^|\.)banyaro\.(app|de)$/.test(location.hostname);
} catch (e) { return false; } } catch (e) { return false; }
}; };

View file

@ -1,6 +1,7 @@
# Offline-Karten (GL/Vektor) — Feature-Plan # Offline-Karten (GL/Vektor) — Feature-Plan
**Status:** Runde 2 (adaptives Modell) umgesetzt — **Staging-Default AN**; Production AUS bis Freigabe. **Status:** LIVE auf Production + Staging (Default AN auf banyaro.app/.de, Prod-Freigabe René 2026-06-07
nach bestandenen Gerätetests Runde 1+2). localhost = Leaflet/AUS.
**Stand:** 2026-06-07. Autor: René + Claude (Design). **Stand:** 2026-06-07. Autor: René + Claude (Design).
## Umsetzungsstand (2026-06-06, v1222 auf Staging) ## Umsetzungsstand (2026-06-06, v1222 auf Staging)