CameraState(androidJvm)

Describes the viewpoint of a camera.

class CameraState(androidJvm) : Serializable

Constructors

CameraState
Link copied to clipboard
open fun CameraState(center: Point, padding: EdgeInsets, zoom: Double, bearing: Double, pitch: Double)

Functions

equals
Link copied to clipboard
open fun equals(object: Any): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

bearing
Link copied to clipboard
private val bearing: Double
center
Link copied to clipboard
private val center: Point
padding
Link copied to clipboard
private val padding: EdgeInsets
pitch
Link copied to clipboard
private val pitch: Double
zoom
Link copied to clipboard
private val zoom: Double

Extensions

toCameraOptions
Link copied to clipboard

Extension function to convert CameraState to CameraOptions.

If anchor is specified - CameraOptions.center will be explicitly set to NULL in order for the anchor to apply to the map camera.

fun CameraState.toCameraOptions(anchor: ScreenCoordinate?): CameraOptions