Calculates an expanded bounding box that, when the map is zoomed to it, ensures that the given to-be-contained bounding box
is visible within the area not obscured by surrounding UI elements, including optional padding.
In other words, calculates a bounding box that ensure the to-be-contained bbox fits within the visible area of the map.
The expanded bounding box as [west, south, east, north], or null if the visible area is too small
Remarks
This is useful when you have a specific geographic area (containedBBox) that you want to be fully visible
in the unobscured portion of the map (the area not covered by UI components).
The function returns a larger bounding box that accounts for the space taken by UI elements.
Calculates an expanded bounding box that, when the map is zoomed to it, ensures that the given to-be-contained bounding box is visible within the area not obscured by surrounding UI elements, including optional padding.