Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The routeLineTraveledColor does not work in version v3 sdk #7865

Open
heyuejin2empty opened this issue Sep 10, 2024 · 1 comment
Open

The routeLineTraveledColor does not work in version v3 sdk #7865

heyuejin2empty opened this issue Sep 10, 2024 · 1 comment

Comments

@heyuejin2empty
Copy link

heyuejin2empty commented Sep 10, 2024

    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"

@wirthandras
Copy link

@heyuejin2empty I am using version 2.19, in my app the withVanishingRouteLineEnabled(true) function was required for this color change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants