mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

Route Overview does not work properly when showing on android auto

Open AkshatDubey10 opened this issue 1 year ago • 0 comments

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.

AkshatDubey10 avatar Jul 23 '24 13:07 AkshatDubey10