camera For Coordinate Bounds
open override fun cameraForCoordinateBounds(bounds: CoordinateBounds, padding: EdgeInsets, bearing: Double?, pitch: Double?): CameraOptions
Content copied to clipboard
Convert to a camera options from a given LatLngBounds, padding, bearing and pitch values.
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
Returns the converted camera options
Parameters
bounds
The LatLngBounds to take in account when converting
padding
The additional padding to take in account when converting
bearing
The optional bearing to take in account when converting
pitch
The optional pitch to take in account when converting