camera For Coordinate Bounds
abstract fun cameraForCoordinateBounds(bounds: CoordinateBounds, boundsPadding: EdgeInsets? = null, bearing: Double? = null, pitch: Double? = null, maxZoom: Double? = null, offset: ScreenCoordinate? = null): CameraOptions
Convenience method that returns the CameraOptions object for given 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 CameraOptions object representing the provided parameters.
Parameters
bounds
The CoordinateBounds of the camera.
bounds Padding
The amount of padding in EdgeInsets to add to the given 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.