mirror of
https://github.com/vicliu624/trail-mate.git
synced 2026-10-23 05:32:18 +00:00
fix(map): retain geocaches when map information is hidden
This commit is contained in:
1 parent
bb028bcc60
commit
d044cc4847
4 files changed
+46
No files matched your search
@@ -3025,6 +3025,9 @@ void keep_only_current_position_overlay(::ui::map::MapOverlaySnapshot& snapshot)
|
||||
const auto& item = snapshot.items[read];
|
||||
const bool keep_item =
|
||||
item.kind == ::ui::map::MapOverlayKind::CurrentPosition ||
|
||||
// Saved places remain visible like Agenda markers and POIs when
|
||||
// map chrome is hidden; this toggle only hides transient info.
|
||||
item.kind == ::ui::map::MapOverlayKind::Geocache ||
|
||||
(keep_route_points && item.kind == ::ui::map::MapOverlayKind::RoutePoint) ||
|
||||
(keep_selected_route_image &&
|
||||
item.kind == ::ui::map::MapOverlayKind::SelectedTarget);
|
||||
|
||||
Reference in new issue
Block a user