From 44499a889427e5df0a9fb9703d48a93ce03d6ed2 Mon Sep 17 00:00:00 2001 From: Filip Leitner Date: Thu, 25 Jul 2024 10:14:57 +0200 Subject: [PATCH] fix(layermanager): Close gallery mini menu on base visiblity toggle --- .../layer-manager/layer-manager-visibility.service.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/projects/hslayers/services/layer-manager/layer-manager-visibility.service.ts b/projects/hslayers/services/layer-manager/layer-manager-visibility.service.ts index f92666a88c..c6c3750a66 100644 --- a/projects/hslayers/services/layer-manager/layer-manager-visibility.service.ts +++ b/projects/hslayers/services/layer-manager/layer-manager-visibility.service.ts @@ -151,9 +151,7 @@ export class HsLayerManagerVisibilityService { continue; } const isToggledLayer = baseLayer == layer; - if (this.baselayersVisible) { - baseLayer.galleryMiniMenu = isToggledLayer; - } + baseLayer.galleryMiniMenu = false; if ($event) { baseLayer.visible = isToggledLayer; baseLayer.active = isToggledLayer;