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

NavigationView - Android: screen will zoom in on the first leg of the multi stop route on Android when navigationViewController.showOverview is called. #337

Open
rhinkle opened this issue Nov 13, 2024 · 1 comment
Assignees
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@rhinkle
Copy link

rhinkle commented Nov 13, 2024

Description

When route is initialized the screen will zoom in on the first leg of the multi stop route on Android. iOS zooms to the level of the full route is visible on the screen.

Environment details

Library version and other environment information:

  • react-native-navigation-sdk version: 0.6.1

OS type and version

  • iOS: 18.1, 18.0
  • Android: 35

Steps to reproduce

  1. Pull down this branch.
  2. Install the dependencies.
  3. Run yarn start
  4. Run yarn ios or yarn android
  5. Click on navigate button
  6. Once the screen is done loading you should see the map zoomed in on the first leg of the route for android.

Code example

Link to code example
Link to onRouteOk

Screenshot 2024-11-13 at 2 52 11 PM

@rhinkle rhinkle added triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Nov 13, 2024
@jokerttu
Copy link
Contributor

Hi @rhinkle
Behaviour differs in underlaying Navigation SDK's for Android and iOS.
As a workaround support to animate camera to bounds should be implemented.
This difference need to be documented to the showOverview method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants