CameraPosition

data class CameraPosition(    val position: GeoCoordinate,     val zoom: Double,     val tilt: Double,     val rotation: Double)

Aggregates all camera position parameters such as position, zoom level, tilt angle, and rotation (aka heading of bearing).

Important: This is a Public Preview API. It may be changed or removed at any time.

See also

to check how to apply new properties for the camera.

Parameters

position

GeoCoordinate of the new desired camera position.

zoom

Zoom value for the camera. The value shall be clamped by the CameraController.minZoom and the CameraController.maxZoom values.

tilt

Sets the tilt to the specified angle. The tilt is measured from the nadir, i.e., value of 0 indicates the camera looking straight down, and 90 - straight ahead towards the horizon.

rotation

Sets the camera heading. Heading is measured starting at due north and continues clockwise around the compass. Thus, north is 0 degrees, east is 90 degrees, south is 180 degrees, and so on.

Constructors

Link copied to clipboard
fun CameraPosition(    position: GeoCoordinate,     zoom: Double,     tilt: Double,     rotation: Double)

Properties

Link copied to clipboard
val position: GeoCoordinate
Link copied to clipboard
val rotation: Double
Link copied to clipboard
val tilt: Double
Link copied to clipboard
val zoom: Double