This is the documentation of version 0.56.0. Go to the latest version, 1.0.0-rc.5.
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 — both where it sits in the layer order and how wide it is drawn, 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. This is how tunnel and ferry draw.

    Every section defaults to whichever of the two it has always been drawn as.