TomTom Maps for JavaScript
    Preparing search index...

    Type Alias TrafficIncidentDetailsLayersConfig

    MapLibre overrides for the layers TrafficIncidentDetailsModule draws, bottom to top, for what its configuration doesn't cover.

    Each entry is a partial layer spec merged onto the module's own. Top-level fields replace, layout and paint merge per property, and what you set here takes precedence over the module's own settings, the incident colours and the highlight included. beforeLayerConfig decides where the layers sit, so a beforeID here is ignored.

    layers: {
    // Markers from zoom 11, and no delay text next to the jams
    incidentMarker: { minzoom: 11 },
    jamMarker: { layout: { 'text-field': '' } },
    }
    type TrafficIncidentDetailsLayersConfig = {
        closedRoadMarker?: Partial<
            ToBeAddedLayerSpecTemplate<SymbolLayerSpecification>,
        >;
        highlightHalo?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>;
        incidentMarker?: Partial<
            ToBeAddedLayerSpecTemplate<SymbolLayerSpecification>,
        >;
        innerChevron?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>;
        innerPattern?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>;
        innerSolid?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>;
        jamMarker?: Partial<ToBeAddedLayerSpecTemplate<SymbolLayerSpecification>>;
        outline?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>;
    }
    Index
    closedRoadMarker?: Partial<ToBeAddedLayerSpecTemplate<SymbolLayerSpecification>>

    The closed-road icon.

    highlightHalo?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>

    The outline beneath a focused, hovered or clicked incident, absent with highlight: false.

    incidentMarker?: Partial<ToBeAddedLayerSpecTemplate<SymbolLayerSpecification>>

    The category icon of every incident but jams and closed roads.

    innerChevron?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>

    The direction chevrons over that stripe, from zoom 12.

    innerPattern?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>

    The patterned stripe of the unknown (no delay) and indefinite (road closed) incidents.

    innerSolid?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>

    The stripe of the incidents with a known delay (minor, moderate, major).

    jamMarker?: Partial<ToBeAddedLayerSpecTemplate<SymbolLayerSpecification>>

    The jam icon with its delay text.

    outline?: Partial<ToBeAddedLayerSpecTemplate<LineLayerSpecification>>

    Every incident's outline, in its magnitude's colour.