open override fun cameraForGeometry(geometry: Geometry, padding: EdgeInsets, bearing: Double?, pitch: Double?): CameraOptions
Content copied to clipboard
Convert to a camera options from a given geometry, 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.
Returns the converted camera options