Karten: GL als Default auf Production freigeschaltet (Hostname banyaro.app/.de)

MapLibre-GL-Migration ist verifiziert (Staging) → GL jetzt Default auf allen
deployten Hosts statt nur staging.banyaro.app. localhost/LAN bleibt OSM-Raster
(keine lokalen Tiles), by_map_gl=0 erzwingt weiterhin den Leaflet-Fallback.
Tiles (dach.pmtiles, 15 Länder) + Glyphs liegen nun auch im Prod-Data-Volume.
SW-Bump 1219→1220.
This commit is contained in:
rene 2026-06-05 21:12:24 +02:00
parent 72ee339860
commit 939e48b0c7
7 changed files with 23 additions and 21 deletions

View file

@ -900,13 +900,14 @@ const UI = (() => {
let _uiGL = false; // ist die aktuell erstellte UI-Karte GL?
let _maplibreUIPromise = null;
// Gleiche Logik wie pages/map.js _useGL: Staging-Default AN, Prod AUS, by_map_gl überschreibt.
// Gleiche Logik wie pages/map.js _useGL: GL-Default auf allen deployten Hosts AN, by_map_gl überschreibt.
function _uiUseGL() {
try {
const flag = localStorage.getItem('by_map_gl');
if (flag === '1') return true;
if (flag === '0') return false;
return /(^|\.)staging\.banyaro\.app$/.test(location.hostname);
// GL-Default auf allen deployten Hosts (Prod + Staging); localhost bleibt OSM. Prod-Freigabe 2026-06-05.
return /(^|\.)banyaro\.(app|de)$/.test(location.hostname);
} catch (e) { return false; }
}