Instance Property

showsTraffic

A Boolean value indicating whether the map displays traffic information.

Declaration

var showsTraffic: Bool { get set }

Discussion

The mapType property must be set to standard or hybrid for traffic information to be shown. The default value of this property is false.

See Also

Configuring the Map’s Appearance

var camera: MKMapCamera

The camera used for determining the appearance of the map.

func setCamera(MKMapCamera, animated: Bool)

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

var showsPointsOfInterest: Bool

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

var showsBuildings: Bool

A Boolean indicating whether the map displays extruded building information.

var showsCompass: Bool

A Boolean indicating whether the map displays a compass control.

var showsZoomControls: Bool

A Boolean indicating whether the map displays zoom controls.

var showsScale: Bool

A Boolean indicating whether the map shows scale information.