I am trying to figure out how to update the LayerList widget in v4 when a layer is removed from the map.
I cannot find any material on refreshing it or updating it on documentation.
Currently a layer can be removed, but still sit in the LayerList view, confusing the user.