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

    Type Alias ViewportPlacesAddOptions

    ViewportPlacesAddOptions: ViewportPlacesAddCommonOptions & {
        placesModuleConfig?: PlacesModuleConfig;
        searchOptions: Omit<FuzzySearchParams, "geoBias" | "cursor" | "signal">;
    }

    Full Options when adding a viewport places module.

    Type Declaration

    • OptionalplacesModuleConfig?: PlacesModuleConfig

      Optional configuration for the places module, such as styling.

    • searchOptions: Omit<FuzzySearchParams, "geoBias" | "cursor" | "signal">

      The search parameters to query places for this place module.

      geoBias, cursor and signal are not accepted here: each module always searches the first page of the current viewport and owns an AbortSignal so that a new search cancels the one it supersedes.