This is the documentation of version 1.0.0-rc.3. Go to the latest version, 1.0.0-rc.5.
TomTom Maps for JavaScript
    Preparing search index...

    Type Alias RouteWidth

    RouteWidth: "s" | "m" | "l"

    Route line thickness preset.

    Controls the thickness of the route line, its outline, the section lines and the instruction lines at all zoom levels. Each preset is a zoom profile of its own, tuned so the outline stays a readable rim at every thickness. A widthFactor multiplies whichever preset applies.

    Available options:

    • "s" - Thin line, suitable for dense or cluttered maps
    • "m" - Default medium thickness
    • "l" - Thick line, useful for high emphasis or accessibility