You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,13 @@
8
8
* Fixed an issue where the CarPlay navigation map’s vanishing point and user puck initially remained centered on screen, instead of accounting for the maneuver panel, until the navigation bar was shown. ([#1856](https://github.com/mapbox/mapbox-navigation-ios/pull/1856))
9
9
* Fixed an issue where route shields and exit numbers appeared blurry in the maneuver panel on CarPlay devices and failed to appear in the CarPlay simulator. ([#1868](https://github.com/mapbox/mapbox-navigation-ios/pull/1868))
10
10
* Added `VisualInstruction.containsLaneIndications`, `VisualInstruction.maneuverImageSet(side:)`, `VisualInstruction.shouldFlipImage(side:)`, and `VisualInstruction.carPlayManeuverLabelAttributedText(bounds:shieldHeight:window:)`. ([#1860](https://github.com/mapbox/mapbox-navigation-ios/pull/1860))
11
+
*`RouteLegProgress.upComingStep` has been renamed to `upcomingStep`. ([#1860](https://github.com/mapbox/mapbox-navigation-ios/pull/1860))
11
12
12
13
### Other changes
13
14
14
15
* The `NavigationSettings.shared` property is now accessible in Objective-C code as `MBNavigationSettings.sharedSettings`. ([#1882](https://github.com/mapbox/mapbox-navigation-ios/pull/1882))
15
16
* Fixed spurious rerouting on multi-leg routes. ([#1884](https://github.com/mapbox/mapbox-navigation-ios/pull/1884))
17
+
* Adding property `RouteController.nearbyCoordinates`, which offers similar behavior to `RouteLegProgress.nearbyCoordinates`, which the addition of step lookahead/lookbehind in multi-leg routes. ([#1883](https://github.com/mapbox/mapbox-navigation-ios/pull/1883))
Copy file name to clipboardExpand all lines: MapboxCoreNavigation/RouteProgress.swift
+55-1Lines changed: 55 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,54 @@ open class RouteProgress: NSObject {
97
97
Returns the progress along the current `RouteLeg`.
98
98
*/
99
99
@objcpublicvarcurrentLegProgress:RouteLegProgress
100
+
101
+
@objcpublicvarpriorLeg:RouteLeg?{
102
+
return legIndex >0? route.legs[legIndex -1]:nil
103
+
}
104
+
105
+
/**
106
+
The step prior to the current step along this route.
107
+
108
+
The prior step may be part of a different RouteLeg than the current step. If the current step is the first step along the route, this property is set to nil.
0 commit comments