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

    Function calculatePaddedBBox

    • Calculates the bounding box in lng-lat coordinates of the visible map area that does not overlap with the given UI HTML elements.

      Parameters

      Returns BBox | null

      The padded bounding box as [west, south, east, north], west > east across the antimeridian, or null if the visible area is too small

      Use it to find the area of the map that UI components don't obscure. On a rotated or tilted map, it is the box around that area.