Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit daf2934

Browse files
committed
fix: Only show out of bound markers for selected view or all
1 parent 8a854e8 commit daf2934

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/screens/LocationsOverviewScreen.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,9 @@ class _LocationsOverviewScreenState extends State<LocationsOverviewScreen>
891891
Widget buildOutOfBoundsMarkers() {
892892
return Stack(
893893
children: _fetchers.views
894-
.where((view) => _fetchers.locations[view]?.isNotEmpty ?? false)
894+
.where((view) =>
895+
(_fetchers.locations[view]?.isNotEmpty ?? false) &&
896+
(selectedViewID == null || selectedViewID == view.id))
895897
.map(
896898
(view) => OutOfBoundMarker(
897899
lastViewLocation: _fetchers.locations[view]!.last,

0 commit comments

Comments
 (0)