Instance Property

showsCompass

A Boolean indicating whether the map displays a compass control.

Declaration

var showsCompass: Bool { get set }

Discussion

Use this property to show or hide a control that lets users change the heading orientation of the map.

See Also

Configuring the Map’s Appearance

func setCamera(MKMapCamera, animated: Bool)

Changes the camera used for determining the map’s viewing parameters and optionally animates the change.

var camera: MKMapCamera

The camera used for determining the appearance of the map.

var pointOfInterestFilter: MKPointOfInterestFilter?

The filter used to determine the points of interest shown on the map.

Beta
var showsBuildings: Bool

A Boolean indicating whether the map displays extruded building information.

var showsZoomControls: Bool

A Boolean indicating whether the map displays zoom controls.

var showsScale: Bool

A Boolean indicating whether the map shows scale information.

var showsTraffic: Bool

A Boolean value indicating whether the map displays traffic information.

var showsPointsOfInterest: Bool

A Boolean indicating whether the map displays point-of-interest information.

Deprecated

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software