cameraForGeometry

abstract fun cameraForGeometry(geometry: Geometry, padding: EdgeInsets = EdgeInsets(0.0, 0.0, 0.0, 0.0), bearing: Double? = null, pitch: Double? = null): CameraOptions

Convenience method that returns the camera options object for given arguments

This API isn't supported by Globe projection.

Return

Returns the camera options object representing the provided params

Parameters

geometry

The geometry of the map

padding

The edge padding of the map

bearing

The bearing of the map

pitch

The pitch of the map