googlemaps / react-native-navigation-sdk

React Native library (Beta) for bringing Google Navigation SDK to Android and iOS apps using React.
https://www.npmjs.com/package/@googlemaps/react-native-navigation-sdk
Apache License 2.0
31 stars 7 forks source link

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 1 week ago

rhinkle commented 1 week ago

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:

OS type and version

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

jokerttu commented 1 week ago

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.