PMMapCameraParams

data class PMMapCameraParams(val position: PMMapPosition? = null, val boundingBox: PMMapBoundingBox? = null, val movementMode: PMMovementModeValue? = null, val zoomLevel: PMMapValue? = null, val rotation: PMMapValue? = null, val tilt: PMMapValue? = null)

Definition of map camera

Constructors

Link copied to clipboard
fun PMMapCameraParams(position: PMMapPosition? = null, boundingBox: PMMapBoundingBox? = null, movementMode: PMMovementModeValue? = null, zoomLevel: PMMapValue? = null, rotation: PMMapValue? = null, tilt: PMMapValue? = null)

Properties

Link copied to clipboard

(optional) Camera bounding box

Link copied to clipboard

(optional) Movement mode of camera

Link copied to clipboard
val position: PMMapPosition? = null

(optional) Position of the camera

Link copied to clipboard
val rotation: PMMapValue? = null

(optional) 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: PMMapValue? = null

(optional) 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: PMMapValue? = null

(optional) 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