Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix route line visibility. #3205

Merged
merged 1 commit into from
Aug 2, 2021
Merged

Conversation

MaximAlien
Copy link
Contributor

Description

Closing #3193.

@MaximAlien MaximAlien added the bug Something isn’t working label Jul 26, 2021
@MaximAlien MaximAlien added this to the v2.0.0 (RC) milestone Jul 26, 2021
@MaximAlien MaximAlien requested a review from a team July 26, 2021 22:46
@MaximAlien MaximAlien self-assigned this Jul 26, 2021
@@ -153,8 +153,7 @@ extension NavigationMapView {
}
}

func onViewDidAppear() {
showRouteIfNeeded()
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous delegate method name was incorrect, so it was never called, not sure if we really need navigationViewDidAppear(_:) anyway. Call to showRouteIfNeeded() is not needed either as it'll be called each time MapView style changes.

@@ -47,8 +47,8 @@ extension NavigationMapView {
// MARK: - Private methods

private func showRouteIfNeeded() {
guard navigationViewData.containerViewController.isViewLoaded &&
navigationViewData.containerViewController.view.window != nil else { return }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Udumft, would you be able to provide more details on why you've added this check: navigationViewData.containerViewController.view.window != nil? At this point it prevents from showing route line right at the start of active guidance navigation session, when using NavigationViewController. I wonder if I miss anything here.

@MaximAlien MaximAlien force-pushed the maxim/3193-fix-route-line-invisibility branch from 61fd00a to de38c92 Compare July 28, 2021 20:30
@MaximAlien MaximAlien force-pushed the maxim/3193-fix-route-line-invisibility branch 2 times, most recently from a503e29 to a6f6e8f Compare July 28, 2021 22:37
@MaximAlien MaximAlien force-pushed the maxim/3193-fix-route-line-invisibility branch from afcb804 to 665f177 Compare August 2, 2021 17:31
Comment on lines +345 to +346
// Since `NavigationViewController` presents route line after its presentation it is expected
// that maneuver arrow stroke layer will be added above main route line layer.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding comments into the test code! That area of the code base would benefit from more in-line comments.

@MaximAlien MaximAlien force-pushed the maxim/3193-fix-route-line-invisibility branch from 665f177 to 1d538aa Compare August 2, 2021 18:44
Base automatically changed from maxim/update-dependencies to main August 2, 2021 20:31
@MaximAlien MaximAlien force-pushed the maxim/3193-fix-route-line-invisibility branch from 85feb0b to baf7b9d Compare August 2, 2021 20:37
@MaximAlien MaximAlien merged commit 5c9fc1d into main Aug 2, 2021
@MaximAlien MaximAlien deleted the maxim/3193-fix-route-line-invisibility branch August 2, 2021 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Route line is sometimes invisible after starting active guidance navigation.
2 participants