camera For Coordinate Bounds
open fun cameraForCoordinateBounds(@NonNull bounds: CoordinateBounds, @Nullable padding: EdgeInsets, @Nullable bearing: Double, @Nullable pitch: Double, @Nullable maxZoom: Double, @Nullable offset: ScreenCoordinate): CameraOptions
Convenience method that returns the `camera options` object for given parameters. This method takes into account the current map padding in addition to the padding provided in parameters.
Return
The `camera options` object representing the provided parameters. Padding is absent in the returned `camera options` as the zoom level already accounts for the padding.
Parameters
bounds
The `coordinate bounds` of the camera.
padding
The amount of padding in pixels to add to the given `coordinate bounds`.
bearing
The bearing of the camera.
pitch
The pitch of the camera.
max Zoom
The maximum zoom level allowed in the returned camera options.
offset
The center of the given bounds relative to map center in pixels.