- Refresh the Layer List widget on the toggle event.- Add the event in the code. Although, this behaviour is not by default with the Layer List widget.- Refresh the Layer List widget on the Load event, however this causes all the legends to disappear.