Tidy up node filtering logic

This commit is contained in:
Garth Vander Houwen 2023-03-19 11:30:47 -07:00
parent f805796af9
commit 9957b35d33

View file

@ -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!