Closed kwongtn closed 6 days ago
Hey, that's a known bug; we currently have to re-draw the entire map because the maplibre library has an issue where layers (particularly the marker layer) will just be removed when hot-reloading the map with a different style. Thus we can't use hot-reload at the moment.
I just tested this and it looks like it persists the location and zoom.
The bug
As shown per video below, the map in web view resets the zoom level when dark/light mode is being toggled.
https://github.com/immich-app/immich/assets/5886584/cda2cfb2-1ca7-4d46-8826-79baa19c9bc8
The OS that Immich Server is running on
Ubuntu 22.04, Kubernetes 1.29.0 (microk8s)
Version of Immich Server
v1.91.4
Version of Immich Mobile App
N/A
Platform with the issue
Your docker-compose.yml content
Your .env content
Reproduction steps
Additional information
The programatical solution to this would probably be to save a value regarding zoom level & coordinates on each zoom / navigation. When map is reset due to light/dark mode toggle, feed those values in.