Skip to content

[QUESTION]: Drawing a route with different colors for different legs #4647

Open
@JanTG1

Description

@JanTG1

I am trying to draw a route on a NavigationMapView using .showcase, while coloring each route leg differently based on a specific logic. Imagine Google Maps when using public transport. Each leg of the route will be colored in a color matching the transportation mode. I am trying to do something similar using mapbox. After trying for a long time I have not found a way to reliably color legs differently. I could also not find a way to reliably color different routes differently, except for the difference between alternatives and main route.

Is there a way to do that currently? If not, can this be added in a future update? It seems so simple...

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