TomTom Maps for JavaScript
    Preparing search index...

    Variable deriveDatasetsConst

    deriveDatasets: (
        state: ToolState,
        parameters: DeriveDatasetsParams,
        executeOptions?: ToolExecuteOptions,
    ) => Promise<DeriveDatasetsResult>

    Derives a dataset from app code, as the deriveDatasets tool does for the model.

    Type Declaration

    Call it from your app or a compact custom tool, so the model writes no code. It runs code in the sandbox over the datasets the *DatasetIDs fields name and writes one new places, custom-geometries or BYOD dataset. With persist: 'monitor', it re-derives that dataset in place whenever a source dataset changes; state.derivedDatasets.remove(datasetId) stops it. Check monitoring: true in the result: a run stays one-shot when it can't follow its sources, such as one that read only reachable ranges, or whose dataset takes a source's id. A datasetId that names a monitored dataset of the kind the code returns rewrites that dataset in place, under the same id, label and display, and the result says revised: true.