TomTom Maps for JavaScript
    Preparing search index...

    Type Alias IncidentHighlightConfig

    How a focused, hovered or clicked incident is drawn, meaning the subset TrafficIncidentDetailsModule.setFocus marks and an incident with an eventState.

    type IncidentHighlightConfig = {
        line?: { widthFactor?: number };
        outline?: { color?: string };
    }
    Index
    line?: { widthFactor?: number }

    The highlighted stripe.

    Type Declaration

    • OptionalwidthFactor?: number

      Multiplier on the stripe's width, clamped to its range in trafficIncidentDetailsKnobCatalogue (1–1.8). A value that is not a finite number falls back to the default. 1 disables the width pop while keeping the outline.

      1.6

    outline?: { color?: string }

    The outline painted beneath the highlighted stripe.

    Type Declaration

    • Optionalcolor?: string

      The outline's colour.

      #000 on light map styles, #FFF on dark styles