I have a big project with API 4.6 that is based on updates of LayerList Widget. I have found a big difference in the behaviour from 4.6 to 4.7.
Look at this sample:
After 5 seconds all layers in map are removed. With API 4.6 the LayerList widget is completely cleaned, with 4.7 no, some layers / group layers are still there.
I know that 4.8 aren't officially released yet, but with 4.8 the behaviour is even different from 4.6 and 4.7......
Is this a bug? Is there some way to completely refresh LayerList widget after removing all layers from the map?
thanks for you answer. Please let me know because i need to know as soon as possibile if i can switch my application to 4.7 /4.8 or otherwise if i am stuck at 4.6. I strongly need to combine LayerList and Legend widget and the funcionality is not present in 4.6...
We submitted multiple cases related to Layer List Widget ( up to 4.7) ... my issue originally was related to the fact that the checkbox for sub layers do not honor visibility of layers ( as the scale changes). The labeling however used to honor the visibility ( it still looks the vase in 4.8) . Those issues look a luxury now
I could at least see the check boxes to hide or show the sub layer.
Now it looks worse .. there is no checkbox for the sub layers ...
That suggestion does not apply to a case where you have a single map service that contains group layers and layer groups will be visible at predefined scales ... because you add it as a single MapImageLayer , because that property is for GroupLayers
You can track the bug via support.esri.com to see the status of the bug.