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

Commit

Permalink
fix: Only show out of bound markers for selected view or all
Browse files Browse the repository at this point in the history
  • Loading branch information
Myzel394 committed Jul 22, 2023
1 parent 8a854e8 commit daf2934
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/screens/LocationsOverviewScreen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,9 @@ class _LocationsOverviewScreenState extends State<LocationsOverviewScreen>
Widget buildOutOfBoundsMarkers() {
return Stack(
children: _fetchers.views
.where((view) => _fetchers.locations[view]?.isNotEmpty ?? false)
.where((view) =>
(_fetchers.locations[view]?.isNotEmpty ?? false) &&
(selectedViewID == null || selectedViewID == view.id))
.map(
(view) => OutOfBoundMarker(
lastViewLocation: _fetchers.locations[view]!.last,
Expand Down

0 comments on commit daf2934

Please sign in to comment.