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

Update electronic horizon example to new API #104

Closed

Conversation

azarovalex
Copy link
Contributor

Electronic horizon public API was changed here mapbox/mapbox-navigation-ios#2906.
This PR changes the "Upcoming intersections" example to use the new API.

@azarovalex azarovalex requested a review from a team April 29, 2021 14:20
@azarovalex azarovalex self-assigned this Apr 29, 2021
@azarovalex azarovalex changed the base branch from main to release-v2.0 April 29, 2021 14:20
@azarovalex azarovalex force-pushed the azarovalex/update-electronic-horizon-api branch from 979395c to a63a8f1 Compare April 29, 2021 15:05
navigationMapView.mapView.update {
$0.location.puckType = .puck2D()
}
navigationMapView.mapView.on(.styleLoaded) { [weak self] _ in
self?.setupMostProbablePathStyle()
}

// TODO: Provide a reliable way of setting camera to current coordinate.
DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the latest NavSDK version camera API was changed and this code doesn't compile anymore.
This code will be rewritten using new API here: #101

@MaximAlien
Copy link
Contributor

Shall we separate changes related to SwiftLint and Electronic Horizon? (e.g. move changes which are needed for SwiftLint to another PR)? I think camera related changes already landed to release-v2.0, so rebasing is needed.

@S2Ler
Copy link
Contributor

S2Ler commented Sep 23, 2021

@azarovalex mind reviving this PR?

@azarovalex
Copy link
Contributor Author

After updating this PR with the latest changes from the main it looks like the main branch already has all the changes, so I'll close the PR.

@azarovalex azarovalex closed this Oct 1, 2021
@azarovalex azarovalex deleted the azarovalex/update-electronic-horizon-api branch October 1, 2021 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants