getVisibleRegion

Returns the visible region of the map.

Gets a projection of the viewing frustum for converting between screen coordinates and geo-latitude/longitude coordinates. The visible region includes the four corner points and the smallest bounding box that contains them.

If map padding is set, the visible region represents the logical (non-padded) viewport, excluding the padded areas where UI elements may be overlaying the map.

Return

A VisibleRegion containing the four corners and bounding box