PMCamera

data class PMCamera(val position: PMMapPosition? = null, val boundingBox: PMMapBoundingBox? = null, val movementMode: PMMovementMode? = null, val zoomLevel: Int? = null, val rotation: Double? = null, val tilt: Double? = null)

Representation of map camera

Constructors

Link copied to clipboard
fun PMCamera(position: PMMapPosition? = null, boundingBox: PMMapBoundingBox? = null, movementMode: PMMovementMode? = null, zoomLevel: Int? = null, rotation: Double? = null, tilt: Double? = null)

Properties

Link copied to clipboard

Binds the camera view to a box

Link copied to clipboard

Affects if the camera is automatically adjusted or set to fixed values

Link copied to clipboard
val position: PMMapPosition? = null

Centers and fixes camera on these geographic coordinates

Link copied to clipboard
val rotation: Double? = null

Sets the rotation of map in degrees. By default, the map is oriented with north toward the top of the map (0 degrees). As the orientation angle increases, the map rotates counter-clockwise. Valid values <-180, 180>

Link copied to clipboard
val tilt: Double? = null

Sets the tilt of map in degrees. The tilt controls the perspective at which the map is viewed. A value of 0 degrees corresponds to looking straight down at the map from above (2D). As the tilt value is increased, the view shifts to a 3D perspective. The tilt of the map may be further constrained at some zoom levels. For example, no tilt is allowed at the lowest zoom levels when the globe is visible. This is to provide a better user experience when interacting with globe, since viewing a "tilted" globe does not give any benefit. Valid values <0, 90>

Link copied to clipboard
val zoomLevel: Int? = null

Level to which camera should be zoomed to. The zoom level determines how "close" the map view is to the surface of the Earth. Higher zoom levels give a closer view. Valid values <0, 22>. Zoom level: 0 - world, 10 - city, 15 - street, 20 - buildings