Skip to content

Commit

Permalink
fix(layermanager): Close gallery mini menu on base visiblity toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipLeitner authored and jmacura committed Jul 29, 2024
1 parent fbaffe1 commit 44499a8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 44499a8

Please sign in to comment.