getBounds method

LngLatBounds getBounds()

Returns the map's geographical bounds. When the bearing or pitch is non-zero, the visible region is not an axis-aligned rectangle, and the result is the smallest bounds that encompasses the visible region. @example var bounds = map.getBounds();

Implementation

LngLatBounds getBounds() => LngLatBounds.fromJsObject(jsObject.getBounds());