Select to view content in your preferred language

Legend widget in ExB does not honor layers that have moved out of group

204
2
08-19-2024 12:18 PM
Labels (1)
LindaStewart
Occasional Contributor

I put 2 widgets into a widget controller, one for layers and one for legend. For the Layers widget, I am allowing the users to reorder the layers. Because all the layers are grouped by categories, this "reorder layers" ability will also allow the a layer to be taken out of the group. So you could take 1 layer out, turn the group off and that layer would still be visible on the map. However, the legend widget does not honor what is visible. It still thinks that layer is in the group and if the group is off, it doesn't show in the legend list, but the layer is on and zoomed to visibility. This seems like a bug or maybe not allow users to take layer out of a group? 

2 Replies
Shen_Zhang
Esri Contributor

Hi @LindaStewart, I cannot reproduce the issue. Could you share a sample app?

Shen Zhang
0 Kudos
LindaStewart
Occasional Contributor

@Shen_Zhang 

Here is an ExB that is doing what I showed in that video. If you pull any of the layer out of the group and turn off the group, the legend will not show any layers are on even though the map shows otherwise

https://experience.arcgis.com/experience/e0bfb57e939049dc8dd7d38fb20a8696

0 Kudos