lookAt

fun lookAt(position: GeoPoint): CameraOptions

Returns the CameraOptions that makes the camera looking at the given GeoPoint.

Return

CameraOptions for the transition.

Parameters

position

The GeoPoint for the camera position.

See also

to read more about the position attribute.


fun lookAt(position: GeoPoint, @FloatRange(from = 0.0, to = 22.0) zoom: Double): CameraOptions

Returns the CameraOptions that make the camera looking at the given GeoPoint at the certain zoom level.

Return

CameraOptions for the transition.

Parameters

position

The GeoPoint of the camera position.

zoom

The zoom level for the camera transition. Values go from 0 (no zoom) to 22 (fully zoomed in). For example, 15 is building-level zoom.

See also

to read more about the position attribute.

to read more about the zoom attribute.


fun lookAt(bounds: GeoBounds, @FloatRange(from = 0.0, to = 22.0) zoom: Double? = null, padding: Int? = null): CameraOptions

Returns the CameraOptions that make the camera looking at the given GeoBounds at the certain zoom level.

Return

CameraOptions for the transition.

Parameters

bounds

Region described by GeoBounds of the camera position.

zoom

Zoom level for the camera transition. Values go from 0 (no zoom) to 22 (fully zoomed in). For example, 15 is building-level zoom.

padding

Padding for the bounds.

See also

to read more about the position attribute.

to read more about the zoom attribute.