The routeLineTraveledColor does not work in version v3 sdk

Open
#7,865 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start with the reported RouteLineColorResources and MapboxRouteLineViewOptions configuration in the issue, using the listed 3.3.1 navigation dependencies to reproduce the behavior. Verify whether routeLineTraveledColor and the other configured colors affect the rendered route line, and document the result with a focused reproduction or test if the relevant test entry point can be found.

Written by the indexing model from the issue text.

Description

    val mapboxRouteLineApiOptions = MapboxRouteLineApiOptions.Builder().build()
    val mapboxRouteLineViewOptions = MapboxRouteLineViewOptions.Builder(this)
        .routeLineBelowLayerId("road-label-navigation")
        .routeLineColorResources(RouteLineColorResources.Builder()
            .routeLineTraveledColor(Color.RED)
            .routeLineTraveledCasingColor(Color.GREEN)
            .routeCasingColor(Color.BLUE)
            .routeClosureColor(Color.YELLOW)
            .routeDefaultColor(Color.GRAY)
            .build()).build()
    routeLineAPI = MapboxRouteLineApi(mapboxRouteLineApiOptions)
    routeLineView = MapboxRouteLineView(mapboxRouteLineViewOptions)
    val routeArrowOptions = RouteArrowOptions.Builder(this)
        .build()
    routeArrowView = MapboxRouteArrowView(routeArrowOptions)

I use the dependent version:
implementation "com.mapbox.navigationcore:navigation:3.3.1"
implementation "com.mapbox.navigationcore:copilot:3.3.1"
implementation "com.mapbox.navigationcore:ui-maps:3.3.1"
implementation "com.mapbox.navigationcore:voice:3.3.1"
implementation "com.mapbox.navigationcore:tripdata:3.3.1"
implementation "com.mapbox.navigationcore:android:3.3.1"
implementation "com.mapbox.navigationcore:ui-components:3.3.1"

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

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.

More from mapbox/mapbox-navigation-android

All issues in mapbox/mapbox-navigation-android

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.