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

    Type Alias SectionKerbConfig

    The kerb a tight curve carries: short stripes over its line, which shows between them.

    Only a curve with a radius of 60 m or less carries one, the kind a driver slows right down for, and only from zoom 12, where the curve is drawn large enough to show it.

    // Blue curves with yellow kerbs
    sections: { curve: { visible: true, color: '#0057B8', kerb: { color: '#FFD700' } } }
    // One plain line
    sections: { curve: { visible: true, kerb: { visible: false } } }
    type SectionKerbConfig = {
        color?: string;
        visible?: boolean;
    }
    Index
    color?: string

    The colour of the stripes, as any CSS colour string.

    A faint shade of the section's color, faded toward white on a light map and toward near-black on a dark one

    visible?: boolean

    Whether the stripes are drawn.

    true