mapbox-navigation-ios
mapbox-navigation-ios copied to clipboard
Fix the intersections property loss after route refresh.
Description
This Pr is to fix the issue that after route refresh, the step intersections related properties will be set to default values. This Pr is to update the step intersections related properties with the updated location.
Implementation
- Move the
RouteController.updateDistanceToIntersection(from:)
andRouteController.updateIntersectionDistances()
toRouteProgress
, and call them after the route refresh event. - Also call the
RouteProgress.updateIntersectionIndex()
in route refresh event to update theRouteStepProgress.intersectionIndex
. Because it's updated by navigator status.
Screenshots or Gifs
Breaking Changes in MapboxCoreNavigation
Breaking API Changes
RouteLegProgress
-
removed method:
init(leg:stepIndex:spokenInstructionIndex:)
inRouteLegProgress
RouteProgress
-
removed method:
init(route:options:legIndex:spokenInstructionIndex:)
inRouteProgress
Breaking Changes in MapboxCoreNavigation
Breaking API Changes
RouteProgress
-
removed method:
init(route:options:legIndex:spokenInstructionIndex:)
inRouteProgress
RouteLegProgress
-
removed method:
init(leg:stepIndex:spokenInstructionIndex:)
inRouteLegProgress
Breaking Changes in MapboxCoreNavigation
Breaking API Changes
RouteProgress
-
removed method:
init(route:options:legIndex:spokenInstructionIndex:)
inRouteProgress
RouteLegProgress
-
removed method:
init(leg:stepIndex:spokenInstructionIndex:)
inRouteLegProgress
Breaking Changes in MapboxCoreNavigation
Breaking API Changes
RouteStepProgress
-
removed method:
init(step:spokenInstructionIndex:)
inRouteStepProgress
RouteLegProgress
-
removed method:
init(leg:stepIndex:spokenInstructionIndex:)
inRouteLegProgress
RouteProgress
-
removed method:
init(route:options:legIndex:spokenInstructionIndex:)
inRouteProgress