mapbox / mapbox-maps-android

Interactive, thoroughly customizable maps in native Android powered by vector tiles and OpenGL.
https://www.mapbox.com/mobile-maps-sdk
Other
478 stars 134 forks source link

Route Overview does not work properly when showing on android auto #2441

Open AkshatDubey10 opened 4 months ago

AkshatDubey10 commented 4 months ago

Environment

Android OS version: 14, 13, 12, 11 Devices affected: SM-S908B, SM-S901B Maps SDK Version: 10.16.6-SNAPSHOT.0306T1139Z.764ecaa Maps Android Auto Extension: 0.5.0

Observed behavior and steps to reproduce

While showing route overview for the route the map sometimes zooms out to show the whole world, and sometimes does not cover the whole drawn route. This only happens when we try to show the route overview on android auto.

We use the cameraForGeometry function available and pass the bounds of the route to the function. When the camera zooms out to show the whole world sometimes the position we get from this function is also in negative values leading to the crashing of app.

image

image

Expected behavior

Route overview should work in the same way it works on mobile, we have also tried using the same bounds on both mobile and auto but on auto this does not seem to work.