File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -218,9 +218,6 @@ open class NavigationMapView: UIView {
218
218
219
219
deinit {
220
220
annotationCache = nil
221
- }
222
-
223
- deinit {
224
221
unsubscribeFromNotifications ( )
225
222
}
226
223
@@ -1094,7 +1091,7 @@ open class NavigationMapView: UIView {
1094
1091
}
1095
1092
1096
1093
// sort the edges by distance from the user
1097
- if let userCoordinate = userLocationForCourseTracking ? . coordinate {
1094
+ if let userCoordinate = mostRecentUserCourseViewLocation ? . coordinate {
1098
1095
intersections. sort { ( intersection1, intersection2) -> Bool in
1099
1096
if let edge1Start = intersection1. coordinate, let edge2Start = intersection2. coordinate {
1100
1097
return userCoordinate. distance ( to: edge1Start) < userCoordinate. distance ( to: edge2Start)
You can’t perform that action at this time.
0 commit comments