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?
Hi @LindaStewart, I cannot reproduce the issue. Could you share a sample app?
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