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

    Type Alias CalculateMapCenterOptions

    Options for calculating map center.

    type CalculateMapCenterOptions = {
        map: TomTomMap | Map;
        surroundingElements: (HTMLElement | string)[];
    }
    Index

    Properties

    map: TomTomMap | Map

    The TomTomMap instance or MapLibre map instance

    surroundingElements: (HTMLElement | string)[]

    Array of HTML elements or DOM selector strings that are positioned over the map