Only load baked layers when project is BWSamern-Ohne or offline
This commit is contained in:
parent
15471c52ff
commit
9d256198a6
2
app.js
2
app.js
|
|
@ -1211,7 +1211,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
|||
const projId = getProjektId();
|
||||
|
||||
// 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)
|
||||
let bakedLayers = globalThis.BAKED_DATA;
|
||||
if (globalThis.BAKED_DATA.layers) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue