mapbox / mapbox/mapbox-maps-android

Route Overview does not work properly when showing on android auto

Open
#2,441 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

android auto auto-triaged bug :beetle:
Dominant language
Kotlin
Stars
578
Forks
161
PR merge metrics
No merged PRs in 30d

Description

## 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](https://github.com/user-attachments/assets/afd82db6-e86b-4276-a503-ab72f29c636f)

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the cameraForGeometry call and the Android Auto extension path, comparing its handling of route bounds with the mobile behavior. Reproduce using Maps SDK 10.16.6-SNAPSHOT.0306T1139Z.764ecaa and the listed devices or Android versions. Done means the full route is shown on Android Auto without zooming to the world or producing negative values that crash the app.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.