Hi,
I am trying to modify the Save Session widget to save changes made by the user in the order of the layers, but I am stuck.
I succeeded in reorder the layers in the map, but the LayerList still shows the previous order.
Is there a simple way to force the LayerList to refresh?
I tried to add and then remove a dummy layer, with the following results:
- if the LayerList is not loaded when I load the session, everything works fine
- if the LayerList is already loaded when I load the session, the LayerList does not refresh
To add and remove the layer I simply used addLayer and removeLayer: