TomTom Maps for JavaScript
    Preparing search index...

    Type Alias CodeExecutionMode

    CodeExecutionMode:
        | "not-started"
        | "iframe-worker"
        | "unavailable"
        | "main-thread"

    Where analyseData, processData, createTracker and clusterIncidents code runs now:

    • not-started - Browser. The iframe starts on the first code run.
    • iframe-worker - Browser, isolated in the iframe's Web Worker.
    • unavailable - Browser. The last start failed, so code-running tools return an error. A call 30 seconds or more later tries again.
    • main-thread - In the page, NOT isolated: Node / SSR, or a browser where the start failed with CodeExecutionConfig.allowMainThreadFallback set. That failure does not retry the iframe.