Skip to content

Commit

Permalink
Fix: base layer (i) information - stop working (#4854)
Browse files Browse the repository at this point in the history
Fix #4506
  • Loading branch information
nboisteault authored Oct 8, 2024
1 parent 359b9a9 commit b90ec2f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions assets/src/legacy/switcher-layers-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,11 @@ var lizLayerActionButtons = function() {
}
}
// Opacity
const currentLayerState = lizMap.mainLizmap.state.rootMapGroup.getMapLayerOrGroupByName(aName);
if (!currentLayerState.singleWMSLayer) {
let isSingleWMSLayer = false;
if (!metadatas.isBaselayer) {
isSingleWMSLayer = lizMap.mainLizmap.state.rootMapGroup.getMapLayerOrGroupByName(aName).singleWMSLayer;
}
if (!isSingleWMSLayer) {
html+= ' <dt>'+lizDict['layer.metadata.opacity.title']+'</dt>';
html+= '<dd>';
html+= '<input type="hidden" class="opacityLayer '+isBaselayer+'" value="'+aName+'">';
Expand Down

0 comments on commit b90ec2f

Please sign in to comment.