TomTom Maps for JavaScript
    Preparing search index...

    Type Alias SectionDrawStyle

    SectionDrawStyle: "halo" | "inline"

    How a section's line relates to the route line it marks, in both layer order and width, since neither reads as intended without the other.

    • halo - Beneath the route's own lines and wider than its outline, so the section shows as a band hugging the route on both sides. The route keeps its own colour.
    • inline - Above the route line at the route's own width, so the route itself appears in the section's colour along that stretch. tunnel and ferry draw this way.

    ferry, traffic, tunnel and vehicleRestricted default to inline, and every other type that draws a line to halo.