mapbox / mapbox/mapbox-navigation-android

Mapbox 1.5.1 - NavigationView styling mapbox_gpsDrawable

Open
#4,645 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
651
Forks
321
PR merge metrics
No merged PRs in 30d

Description

It's seems impossible to change the gps icon used for navigation.

Using latest Mapbox Library with Navigation UI

implementation "com.mapbox.navigation:ui:1.5.1"
implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:9.6.1'

Following the guide didn't help much.

I created my custom style changing all the attributes of NavigationLocationLayerStyle.

No matter what gpsDrawable i specifiy, the default one is always used.

I don't know what to try anymore, maybe a issue?

Thanks

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 by reproducing the issue with Mapbox Navigation UI 1.5.1 and the NavigationLocationLayerStyle configuration, focusing on the gpsDrawable attribute. Compare the configured drawable with the default navigation icon and determine what behavior should change when a custom drawable is supplied.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.