-
-
Notifications
You must be signed in to change notification settings - Fork 260
Description
BEFORE OPENING AN ISSUE, MAKE SURE YOU READ THIS: #1382
OS & Hardware
Server: Ubuntu 25.04, running Dawarich in Podman
Client: Firefox 144 on Ubuntu 25.04
Version
0.36.4
Describe the bug
The last selected base map layer is not being restored after reloading the page. It seems the layer index gets persisted, but is then compared to the layer name. This results in it never matching. This applies to both custom map layer and the default map layers.
V1 maps are being used.
To Reproduce
Steps to reproduce the behavior:
- Go to the homepage with the map loaded.
- Change the base layer to something besides the default OSM layer
- Reload the page
- Observe that the default OSM layer is loaded
Expected behavior
The last selected base layer should've been restored.
Screenshots
This shows that selectedLayerName from the user settings is 9, but the map layer name is an actual name. This will never match.
When changing to OpenTopo, the selectedLayerName variable is 3 instead of the layer name.
Logs
NA
Additional context