TomTom Maps for JavaScript
    Preparing search index...

    Type Alias RouteTheme

    Generic styling for route visualization.

    • Provides high-level theming options for route appearance.
    • Can be overwritten by more specific layer styling configurations.
    type RouteTheme = {
        mainColor?: string;
    }
    Index

    Properties

    Properties

    mainColor?: string

    The overall main color for the route waypoints and main lines.

    • Use this to quickly theme the route appearance to match your application style.
    • Can be overwritten by more specific configuration options which target color of specific layers.

    Available options:

    • Any valid CSS color string (e.g., "#FF0000", "rgb(255,0,0)", "red", etc.)