CameraProperties
public struct CameraProperties
A type that represents CameraProperties: position, zoom, tilt and rotation
-
Creates an instance of CameraProperties
Declaration
Swift
public init( position: CLLocationCoordinate2D, zoom: Double, tilt: Double, rotation: Double, positionMarkerVerticalOffset: Double, scale: Double, fieldOfView: Double )
Parameters
position
Position of the camera in CLLocationCoordinate2D.
zoom
Displays the map from a closer position. Allowed zoom level range: [0, 22].
tilt
The camera tilt. A value of 0 indicates the camera looking straight down, and 90 means it is looking straight ahead towards the horizon.
rotation
Camera heading, measured starting at due north and continuing clockwise around the compass. Thus, north is 0 degrees, east is 90 degrees, south is 180 degrees, and so on. Allowed range: [0, 360].
positionMarkerVerticalOffset
Set the vertical offset from the center of the screen of the position marker. The offset controls the placement of the position marker in the space between the center of the safe area and its bottom. Offset of 0.0 means the position marker should remain in the center of the safe area. Offset of 1.0 means the position marker should be aligned with the bottom of the safe area.
scale
Ratio of a distance on the screen to the actual distance in the world. Cannot be less than 1.0.
fieldOfView
Camera field of view in degrees. Allowed range [1.0, 150.0].
-
Position of the camera in CLLocationCoordinate2D.
Declaration
Swift
public let position: CLLocationCoordinate2D
-
Displays the map from a closer position. Allowed zoom level range: [0, 22].
Declaration
Swift
public let zoom: Double
-
A value of 0 indicates the camera is looking straight down. 90 means it is looking straight ahead towards the horizon.
Declaration
Swift
public let tilt: Double
-
Camera heading, measured starting at due north and continuing clockwise around the compass. Allowed range: [0, 360].
Declaration
Swift
public let rotation: Double
-
Sets the camera position marker vertical offset from the centre of the screen.
Declaration
Swift
public let positionMarkerVerticalOffset: Double
-
Ratio of a distance on the screen to the actual distance in the world. Cannot be less than 1.0.
Declaration
Swift
public let scale: Double
-
A camera field of view
Declaration
Swift
public let fieldOfView: Double