Skip to content

Commit 929b73c

Browse files
committed
Fix integration issues after rebase.
1 parent 7acf938 commit 929b73c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Sources/MapboxNavigation/NavigationMapView.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,6 @@ open class NavigationMapView: UIView {
218218

219219
deinit {
220220
annotationCache = nil
221-
}
222-
223-
deinit {
224221
unsubscribeFromNotifications()
225222
}
226223

@@ -1094,7 +1091,7 @@ open class NavigationMapView: UIView {
10941091
}
10951092

10961093
// sort the edges by distance from the user
1097-
if let userCoordinate = userLocationForCourseTracking?.coordinate {
1094+
if let userCoordinate = mostRecentUserCourseViewLocation?.coordinate {
10981095
intersections.sort { (intersection1, intersection2) -> Bool in
10991096
if let edge1Start = intersection1.coordinate, let edge2Start = intersection2.coordinate {
11001097
return userCoordinate.distance(to: edge1Start) < userCoordinate.distance(to: edge2Start)

0 commit comments

Comments
 (0)