Instance Property

isPitchEnabled

A Boolean value indicating whether the map camera’s pitch information is used.

Declaration

var isPitchEnabled: Bool { get set }

Discussion

When this property is set to true and a valid camera is associated with the map, the camera’s pitch angle is used to tilt the plane of the map. When this property is set to false, the camera’s pitch angle is ignored and the map is always displayed as if the user is looking straight down onto it.

In an app, always check the value of this property to determine whether a map can support 3D.

See Also

Accessing Map Properties

var mapType: MKMapType

The type of data displayed by the map view.

var isZoomEnabled: Bool

A Boolean value that determines whether the user may use pinch gestures to zoom in and out of the map.

var isScrollEnabled: Bool

A Boolean value that determines whether the user may scroll around the map.

var isRotateEnabled: Bool

A Boolean value indicating whether the map camera’s heading information is used.