TomTom Maps for JavaScript
    Preparing search index...

    Type Alias TrafficIncidentsEntry

    type TrafficIncidentsEntry = {
        _analyses?: IncidentsAnalyses;
        _focus?: { ids: Set<string>; reason?: string };
        _module?: TrafficIncidentOverlayModule;
        _monitor?: IncidentMonitor;
        _shown?: boolean;
        _tick?: number;
        data: TrafficIncident[];
        id: string;
        label: string;
        params: TrafficIncidentDetailsByBBoxParams & { bbox: BBox };
        timestamp: number;
    }
    Index

    Properties

    _analyses?: IncidentsAnalyses

    Per-entry analysis registry: owns re-executing specs and their results. Lazy-created on first TrafficIncidentsState.setAnalysisSpec or TrafficIncidentsState.addAnalysisToEntry.

    _focus?: { ids: Set<string>; reason?: string }

    Focused subset on this entry — the agent's focusIds write-side. Drives the dim/highlight affordance on _module and feeds focusedFeatures(entryId) for stepping through.

    _module?: TrafficIncidentOverlayModule

    Per-entry incident-details module. Each entry owns its own module so two areas can be rendered on the map at the same time without sharing a single source. Lazy-initialised via TrafficIncidentsState.getEntryModule — undefined until first show. Subscribe to clicks via module.events.on('click', ...) once retrieved.

    _monitor?: IncidentMonitor

    Per-entry polling loop. Lazy-created on first TrafficIncidentsState.startMonitoring call; reused across stop/start cycles. Owns timer, status, error, captured area.

    _shown?: boolean

    True while this entry is currently rendered on the map.

    _tick?: number

    Monotonic counter incremented on every TrafficIncidentsState.replaceEntryData call. Used to detect out-of-order ticks: if a slow module.show() from an earlier tick resolves after a newer tick has already overwritten data, the late path bails before reapplying focus / replaying analyses.

    data: TrafficIncident[]
    id: string
    label: string
    params: TrafficIncidentDetailsByBBoxParams & { bbox: BBox }

    The captured query that produced this entry. Replayed by the monitor on each tick so polling stays in the same slice the entry was loaded with. Reuses the loader's own params shape; the entry stores a resolved BBox tuple in bbox (the loader normalises any GeoJSON value before handing the params off).

    timestamp: number