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], or null if the visible area is too small

      This is useful for determining the area of the map that is not obscured by UI components.