camera For Coordinate Bounds
Convert the given bounds, boundsPadding, bearing and pitch values to CameraOptions. Note that this method takes into account the current map padding in addition to the boundsPadding provided in parameters.
In order for this method to produce correct results MapView must be already measured and inflated to have correct width and height values. Calling this method in Activity.onCreate will lead to incorrect results.
Return
the converted CameraOptions. Padding is absent in the returned CameraOptions as the zoom level already accounts for the boundsPadding provided.
Parameters
The CoordinateBounds of the camera.
The amount of padding in EdgeInsets to add to the given bounds.
The bearing of the camera.
The pitch of the camera.
The maximum zoom level allowed in the returned camera options.
The center of the given bounds relative to map center in pixels.