mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-10-23 05:32:18 +00:00
fix(map): persist pager map view state (#48)
Preserve the real ESP/Pager GPS map runtime view state across menu exit and re-entry by caching zoom, center, pan, and follow mode outside the reset GPSPageState lifecycle and updating the cache when map controls, touch pan, route focus, tracker focus, or GPS follow refresh change the view.
This commit is contained in:
1 parent
45cdd266d6
commit
b0ffcf4a72
6 files changed
+79
-1
No files matched your search
@@ -8,5 +8,7 @@ namespace gps::ui::runtime
|
||||
bool is_available();
|
||||
void enter(const shell::Host* host, lv_obj_t* parent);
|
||||
void exit(lv_obj_t* parent);
|
||||
void remember_gps_view_state();
|
||||
bool restore_gps_view_state();
|
||||
|
||||
} // namespace gps::ui::runtime
|
||||
Reference in new issue
Block a user