Skip to content

Commit

Permalink
update changelog and clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
Shan Ma committed Dec 3, 2020
1 parent 121c97f commit 39195a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
* `NavigationMapViewDelegate.navigationMapView(_:alternativeRouteStyleLayerWithIdentifier:source:)` to style alternative route.
* `NavigationMapViewDelegate.navigationMapView(_:alternativeRouteCasingStyleLayerWithIdentifier:source:)` to style the casing of alternative route.

### Vanishing route line

* Added the ability to synchronize route progress, puck and vanishing route line with a location based distance calculation implementation. ([#2737](https://github.com/mapbox/mapbox-navigation-ios/pull/2737))

### Other changes

* Added Ukrainian localization. ([#2735](https://github.com/mapbox/mapbox-navigation-ios/pull/2735))
Expand Down
6 changes: 2 additions & 4 deletions MapboxNavigation/NavigationMapView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -533,10 +533,8 @@ open class NavigationMapView: MGLMapView, UIGestureRecognizerDelegate {
below: alternativeRouteLayer)
}
}
if routeLineTracksTraversal{
if let firstRoute = routes.first {
initPrimaryRoutePoints(route: firstRoute)
}
if routeLineTracksTraversal, let firstRoute = routes.first {
initPrimaryRoutePoints(route: firstRoute)
}
}

Expand Down

0 comments on commit 39195a9

Please sign in to comment.