getCameraForLatLngBounds

Get a camera position that fits a provided bounds and the current camera tilt and bearing.

Return

the camera position that fits the bounds

Parameters

latLngBounds

the bounds to set the map with


open fun getCameraForLatLngBounds(@NonNull latLngBounds: LatLngBounds, @NonNull @Size(value = 4) padding: Array<Int>): CameraPosition

Get a camera position that fits a provided bounds and padding and the current camera tilt and bearing.

Return

the camera position that fits the bounds and padding

Parameters

latLngBounds

the bounds to set the map with

padding

the padding to apply to the bounds (in left, top, right, bottom order)


Get a camera position that fits a provided bounds, bearing and tilt.

Return

the camera position that fits the bounds and given bearing and tilt

Parameters

latLngBounds

the bounds to set the map with

bearing

the bearing to transform the camera position with

tilt

to transform the camera position with


Get a camera position that fits a provided bounds, padding, bearing and tilt.

Return

the camera position that fits the bounds, bearing and tilt

Parameters

latLngBounds

the bounds to set the map with

padding

the padding to apply to the bounds (in left, top, right, bottom order)

bearing

the bearing to transform the camera position with

tilt

to transform the camera position with