This is the documentation of version 1.0.0-rc.7. Go to the latest version, 1.0.0.
TomTom Maps for JavaScript
    Preparing search index...

    Interface DatasetModeSlice

    A state slice that owns a history of datasets and can be set to single or multiple mode. Every ToolState slice with setDatasetMode implements this shape, which lets callers (the setDatasetMode tool, createMapAgent's datasets option, …) handle the whole family uniformly without listing slice names.

    interface DatasetModeSlice {
        datasetMode: DatasetMode;
        datasets: readonly { id: string }[];
        setDatasetMode(mode: DatasetMode): Promise<void>;
    }
    Index
    datasetMode: DatasetMode
    datasets: readonly { id: string }[]