Only load baked layers when project is BWSamern-Ohne or offline

This commit is contained in:
Johannes Baumeister 2026-06-25 10:30:25 +02:00
parent 15471c52ff
commit 9d256198a6
1 changed files with 1 additions and 1 deletions

2
app.js
View File

@ -1211,7 +1211,7 @@ document.addEventListener('DOMContentLoaded', async () => {
const projId = getProjektId(); const projId = getProjektId();
// Priority 1: Use globalThis.BAKED_DATA if available (Standalone Mode) // Priority 1: Use globalThis.BAKED_DATA if available (Standalone Mode)
if (globalThis.BAKED_DATA) { if (globalThis.BAKED_DATA && (projId.toLowerCase() === 'bwsamern-ohne' || isLocalFile)) {
// Support both old format (direct layers) and new format (with mapping/statuses) // Support both old format (direct layers) and new format (with mapping/statuses)
let bakedLayers = globalThis.BAKED_DATA; let bakedLayers = globalThis.BAKED_DATA;
if (globalThis.BAKED_DATA.layers) { if (globalThis.BAKED_DATA.layers) {