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

    Type Alias ViewportPlacesConstructorOptions

    The options for creating a ViewportPlaces.

    type ViewportPlacesConstructorOptions = {
        onError?: (error: unknown) => void;
    }
    Index
    onError?: (error: unknown) => void

    Called when a refresh on map move, or the clear of a removed module, fails: with the SDKError of the search, or the TomTomMapError of the map.

    a console.warn