fix: prevent cleanupLocalOwnerLayers from deleting the outline (Umriss) layer
Deploy Standortplaner / deploy (push) Successful in 17s
Details
Deploy Standortplaner / deploy (push) Successful in 17s
Details
This commit is contained in:
parent
330a7a5a0a
commit
955c71a02e
4
app.js
4
app.js
|
|
@ -1455,7 +1455,9 @@ document.addEventListener('DOMContentLoaded', async () => {
|
||||||
|
|
||||||
function cleanupLocalOwnerLayers() {
|
function cleanupLocalOwnerLayers() {
|
||||||
const localOwnerKeys = Object.keys(overlays).filter(k =>
|
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 => {
|
localOwnerKeys.forEach(key => {
|
||||||
console.log(`Entferne lokalen Layer "${key}" (wird durch ALKIS DB ersetzt).`);
|
console.log(`Entferne lokalen Layer "${key}" (wird durch ALKIS DB ersetzt).`);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue