Skip to content

Change route line default color #173

@ghadeeraqraa1992

Description

@ghadeeraqraa1992

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 ?
Screen Shot 2022-12-13 at 3 12 47 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions