From 851fd3f573c84dc909235eb86648757b2a6e60be Mon Sep 17 00:00:00 2001 From: Simon Seyock Date: Tue, 11 Jun 2024 17:15:29 +0200 Subject: [PATCH] fix: ignore checked attribute for groups --- src/parser/SHOGunApplicationUtil.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/parser/SHOGunApplicationUtil.ts b/src/parser/SHOGunApplicationUtil.ts index a17a582db..9112ea1da 100644 --- a/src/parser/SHOGunApplicationUtil.ts +++ b/src/parser/SHOGunApplicationUtil.ts @@ -120,8 +120,7 @@ class SHOGunApplicationUtil { const nodes = await this.parseNodes(layerTree.children, layers, projection, keepClientConfig); return new OlLayerGroup({ - layers: nodes.reverse(), - visible: layerTree.checked + layers: nodes.reverse() }); } } catch (e) { @@ -217,11 +216,8 @@ class SHOGunApplicationUtil { async parseFolder(el: DefaultLayerTree, layers: S[], projection?: OlProjectionLike, keepClientConfig = false) { const layersInFolder = await this.parseNodes(el.children, layers, projection, keepClientConfig); - const visible = el.checked || layersInFolder.some(layer => layer.getVisible()); - const folder = new OlLayerGroup({ - layers: layersInFolder.reverse(), - visible + layers: layersInFolder.reverse() }); folder.set('name', el.title);