lookAt

fun lookAt(position: GeoCoordinate): CameraOptions

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

Return

CameraOptions for the transition.

See also

to read more about the position attribute.

Parameters

position

The GeoCoordinate for the camera position.


fun lookAt(position: GeoCoordinate, zoom: Double): CameraOptions

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

Return

CameraOptions for the transition.

See also

to read more about the zoom attribute.

Parameters

position

The GeoCoordinate of the camera position.

zoom

The zoom level for the camera transition.


fun lookAt(    bounds: GeoBounds,     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.

See also

to read more about the zoom attribute.

Parameters

bounds

Region described by GeoBounds of the camera position.

zoom

Zoom level for the camera transition.

padding

Padding for the bounds.