Change route line default color
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the route-line styling from the provided Kotlin snippet with Navigation SDK com.mapbox.navigation:android:2.9.4, focusing on the RouteLineColorResources and RouteLineResources configuration. Confirm why routeDefaultColor has no visible effect, then verify that the rendered default route line uses the requested color while retaining the configured casing color.
Written by the indexing model from the issue text.
Description
I'm not able to change the route line default color as in the image below, I tried by changing routeDefaultColor without a result
val customColorResources = RouteLineColorResources.Builder()
.routeCasingColor(Color.parseColor("#00DEDF"))
.routeDefaultColor(Color.parseColor("#00DEDF"))//TODO :: it is not work
.build()
val routeLineResources = RouteLineResources.Builder()
.routeLineColorResources(customColorResources)
.build()
val mapboxRouteLineOptions = MapboxRouteLineOptions.Builder(this)
.withVanishingRouteLineEnabled(true)
.withRouteLineResources(routeLineResources)
.withRouteLineBelowLayerId(LocationComponentConstants.LOCATION_INDICATOR_LAYER)
.build()
routeLineApi = MapboxRouteLineApi(mapboxRouteLineOptions)
routeLineView = MapboxRouteLineView(mapboxRouteLineOptions)
Navigation SDK : com.mapbox.navigation:android:2.9.4
any help here ?

- Dominant language
- Kotlin
- Stars
- 65
- Forks
- 56
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 2
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mapbox/mapbox-navigation-android-examples
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
mapbox/mapbox-navigation-android-examples#207 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in mapbox/mapbox-navigation-android-examples
Similar issues
-
Bug Domain changed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
keiyoushi/extensions-source#19376 · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
block/artifact-swap#176 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
librepods-org/librepods#802 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
mrmans0n/asyncresult#102 ·
Maintainers usually reply within 2 days