TomTom Maps for JavaScript
    Preparing search index...

    Type Alias BYODEntry

    A single entry in the BYOD (bring-your-own-data) GeoJSON history. Each entry is a customer-authored layer the agent can read, render, query, or pipe through analyseData / processData.

    type BYODEntry = {
        _module?: CustomGeoJSONModule;
        _shown?: boolean;
        data: FeatureCollection;
        id: string;
        label: string;
        layers: CustomGeoJSONLayerSpec[];
        source: BYODSource;
        timestamp: number;
    }
    Index

    Properties

    _module?: CustomGeoJSONModule

    Per-entry CustomGeoJSONModule. Each entry owns its own module so display state (currently-rendered feature set, visibility) lives on the entry instead of a shared slice-level module. Lazy-initialised via BYODState helpers.

    _shown?: boolean

    True while this entry's _module is rendering on the map.

    id: string
    label: string
    layers: CustomGeoJSONLayerSpec[]

    MapLibre layer specs the slice will render this entry under. When omitted at addEntry time the slice fills this in with sensible defaults based on the entry's geometry types (Point → circle, Line → line, Polygon → fill).

    source: BYODSource

    Provenance for the data — used by recall tools and the UI.

    timestamp: number