getCameraForGeometry

open fun getCameraForGeometry(@NonNull geometry: Geometry): CameraPosition

Get a camera position that fits a provided shape.

Return

the camera position that fits the geometry inside

Parameters

geometry

the geometry to wraps the map with


open fun getCameraForGeometry(@NonNull geometry: Geometry, @NonNull @Size(value = 4) padding: Array<Int>): CameraPosition

Get a camera position that fits a provided shape and padding.

Return

the camera position that fits the geometry inside and padding

Parameters

geometry

the geometry to wraps the map with

padding

the padding to apply to the bounds


Get a camera position that fits a provided shape with a given bearing and tilt.

Return

the camera position that the geometry inside with bearing and tilt

Parameters

geometry

the geometry to wraps the map with

bearing

the bearing at which to compute the geometry's bounds

tilt

the tilt at which to compute the geometry's bounds


Get a camera position that fits a provided shape with a given padding, bearing and tilt.

Return

the camera position that fits the geometry inside with padding, bearing and tilt

Parameters

geometry

the geometry to wraps the map with

padding

the padding to apply to the bounds

bearing

the bearing at which to compute the geometry's bounds

tilt

the tilt at which to compute the geometry's bounds