TomTom Maps for JavaScript
    Preparing search index...

    Type Alias DatasetConfig

    Per-kind configuration accepted by createMapAgent's datasets option.

    type DatasetConfig = {
        datasetMode?: DatasetMode;
        enabled?: boolean;
    }
    Index
    datasetMode?: DatasetMode

    The initial dataset-display policy for the underlying slice. single keeps only the latest dataset on the map and hides the others. multiple (default) lets several coexist.

    enabled?: boolean

    When false, the kind is removed from the agent's data tools:

    • The kind disappears from the analyseDatasets and deriveDatasets scope and input fields.
    • The kind drops out of the slices updateDatasetDisplay and setDatasetMonitor take.
    • The tools TOOLS_BY_DATASET_KIND lists for it are dropped from the registry. setDatasetMonitor goes once routes and incidents are both off; other tools spanning kinds, such as recallState and setMapStyling, stay.

    Defaults to true.