From 955c71a02ee8e09afc3f2d86843e884fb1142d03 Mon Sep 17 00:00:00 2001 From: Johannes Baumeister Date: Thu, 25 Jun 2026 10:01:23 +0200 Subject: [PATCH] fix: prevent cleanupLocalOwnerLayers from deleting the outline (Umriss) layer --- app.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index dbf94c4..c85f8dd 100644 --- a/app.js +++ b/app.js @@ -1455,7 +1455,9 @@ document.addEventListener('DOMContentLoaded', async () => { function cleanupLocalOwnerLayers() { const localOwnerKeys = Object.keys(overlays).filter(k => - k.toLowerCase().includes('eigentümer') && k !== 'Eigentümer (ALKIS DB)' + k.toLowerCase().includes('eigentümer') && + k !== 'Eigentümer (ALKIS DB)' && + !k.toLowerCase().includes('umriss') ); localOwnerKeys.forEach(key => { console.log(`Entferne lokalen Layer "${key}" (wird durch ALKIS DB ersetzt).`);