cameraForGeometry

open fun cameraForGeometry(@NonNull geometry: Geometry, @NonNull padding: EdgeInsets, @Nullable bearing: Double, @Nullable pitch: Double): CameraOptions

Convenience method that returns the `camera options` object for given parameters. This API isn't supported by Globe projection.

Return

The `camera options` object representing the provided parameters.

Parameters

geometry

The `geometry` representing the bounds of the camera.

padding

The `edge insets` of the camera.

bearing

The bearing of the camera.

pitch

The pitch of the camera.