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 center point #1251

Merged
merged 2 commits into from
Mar 22, 2018
Merged

Fix center point #1251

merged 2 commits into from
Mar 22, 2018

Conversation

bsudekum
Copy link
Contributor

Closes: #1246

/cc @mapbox/navigation-ios

@bsudekum bsudekum added ⚠️ DO NOT MERGE PR should not be merged! wip labels Mar 22, 2018

if let location = userLocationForCourseTracking, tracksUserCourse {
UIView.animate(withDuration: 1, delay: 0, options: [.curveLinear, .beginFromCurrentState], animations: {
self.userCourseView?.center = self.convert(location.coordinate, toPointTo: self)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think we need to call this twice. This is called just a few lines above in updateCourseTracking

@bsudekum bsudekum removed wip ⚠️ DO NOT MERGE PR should not be merged! labels Mar 22, 2018
@bsudekum bsudekum merged commit 710edbb into master Mar 22, 2018
@bsudekum bsudekum deleted the fix-location branch March 22, 2018 17:28
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.

1 participant