From 9957b35d331b3e65e4e96e6e461549d12fd74617 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Sun, 19 Mar 2023 11:30:47 -0700 Subject: [PATCH] Tidy up node filtering logic --- Meshtastic/Views/Map/Custom/MapViewSwiftUI.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meshtastic/Views/Map/Custom/MapViewSwiftUI.swift b/Meshtastic/Views/Map/Custom/MapViewSwiftUI.swift index f208339d..e672b276 100644 --- a/Meshtastic/Views/Map/Custom/MapViewSwiftUI.swift +++ b/Meshtastic/Views/Map/Custom/MapViewSwiftUI.swift @@ -122,7 +122,7 @@ struct MapViewSwiftUI: UIViewRepresentable { self.loadedLastUpdatedLocalMapFile = self.lastUpdatedLocalMapFile if showBreadcrumbLines { - let nodePositions = positions.filter { $0.time! > Calendar.current.startOfDay(for: Date()) } + let nodePositions = positions.filter { $0.time! >= Calendar.current.startOfDay(for: Date()) } let lineCoords = nodePositions.map ({ (position) -> CLLocationCoordinate2D in return position.nodeCoordinate!