Skip to content

Conversation

@danesfeder
Copy link
Contributor

Closes #1245

We currently don't offer a way to start up the NavigationView with a camera position. Our UX isn't ideal, zooming in from 0, 0 world view.

This PR adds a new NavigationView#initialize(OnNavigationReadyCallback, CameraPosition) that will set the MapboxMap to that position as soon as it's ready.

In the EmbeddedNavigationActivity, we went from this:

ezgif com-video-to-gif 1

to this:

ezgif com-video-to-gif

And also added the option in NavigationLauncherOptions:

ezgif com-video-to-gif 2

cc @tobrun

@danesfeder danesfeder added ✓ ready for review feature New feature request. backwards incompatible Requires a SEMVER major version change. labels Oct 30, 2018
@danesfeder danesfeder added this to the v0.23.0 milestone Oct 30, 2018
@danesfeder danesfeder self-assigned this Oct 30, 2018
Copy link
Contributor

@Guardiola31337 Guardiola31337 left a comment

Choose a reason for hiding this comment

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

Other than this minor comment, this looks good to me. Thanks @danesfeder for running with this.

* This method adds the {@link OnNavigationReadyCallback},
* which will fire ready / cancel events for this view.
*
* @param onNavigationReadyCallback to be set to this view
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor detail - Could we add the missing Javadoc @param CameraPosition?

@danesfeder
Copy link
Contributor Author

@Guardiola31337 good catch, this is updated

Copy link
Contributor

@Guardiola31337 Guardiola31337 left a comment

Choose a reason for hiding this comment

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

Thanks for addressing the feedback @danesfeder :shipit:

@danesfeder danesfeder merged commit af61c39 into master Oct 31, 2018
@danesfeder danesfeder deleted the dan-starting-point branch October 31, 2018 18:07
@danesfeder danesfeder removed the backwards incompatible Requires a SEMVER major version change. label Oct 31, 2018
@danesfeder danesfeder mentioned this pull request Nov 7, 2018
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants