newLatLngBounds

Returns a CameraUpdate that transforms the camera such that the specified latitude/longitude bounds are centered on screen at the greatest possible zoom level while maintaining current camera position bearing and tilt values.

You can specify padding, in order to inset the bounding box from the map view's edges. The padding will not persist and impact following camera transformations.

Return

CameraUpdate Final Camera Position

Parameters

bounds

Bounds to match Camera position with

padding

Padding added to the bounds


fun newLatLngBounds(bounds: LatLngBounds, bearing: Double, tilt: Double, padding: Int): CameraUpdate

Returns a CameraUpdate that transforms the camera such that the specified latitude/longitude bounds are centered on screen at the greatest possible zoom level while using provided bearing and tilt values.

You can specify padding, in order to inset the bounding box from the map view's edges. The padding will not persist and impact following camera transformations.

Return

CameraUpdate Final Camera Position

Parameters

bounds

Bounds to match Camera position with

bearing

Bearing to take in account when generating the bounds

tilt

Tilt to take in account when generating the bounds

padding

Padding added to the bounds


fun newLatLngBounds(bounds: LatLngBounds, paddingLeft: Int, paddingTop: Int, paddingRight: Int, paddingBottom: Int): CameraUpdate

Returns a CameraUpdate that transforms the camera such that the specified latitude/longitude bounds are centered on screen at the greatest possible zoom level while maintaining current camera position bearing and tilt values.

You can specify padding, in order to inset the bounding box from the map view's edges. The padding will not persist and impact following camera transformations.

Return

CameraUpdate Final Camera Position

Parameters

bounds

Bounds to base the Camera position out of

paddingLeft

Padding left of the bounds

paddingTop

Padding top of the bounds

paddingRight

Padding right of the bounds

paddingBottom

Padding bottom of the bounds


fun newLatLngBounds(bounds: LatLngBounds, bearing: Double, tilt: Double, paddingLeft: Int, paddingTop: Int, paddingRight: Int, paddingBottom: Int): CameraUpdate

Returns a CameraUpdate that transforms the camera such that the specified latitude/longitude bounds are centered on screen at the greatest possible zoom level while using provided bearing and tilt values.

You can specify padding, in order to inset the bounding box from the map view's edges. The padding will not persist and impact following camera transformations.

Return

CameraUpdate Final Camera Position

Parameters

bounds

Bounds to base the Camera position out of

bearing

Bearing to take in account when generating the bounds

tilt

Tilt to take in account when generating the bounds

paddingLeft

Padding left of the bounds

paddingTop

Padding top of the bounds

paddingRight

Padding right of the bounds

paddingBottom

Padding bottom of the bounds