Instance Method

setCamera(_:animated:)

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

Declaration

func setCamera(_ camera: MKMapCamera, animated: Bool)

Parameters

camera

The camera object containing the viewing angle information. This parameter must not be nil.

animated

Specify true if you want the change in viewing angle to be animated or false if you want the map to reflect the changes without animations.

See Also

Configuring the Map’s Appearance

var camera: MKMapCamera

The camera used for determining the appearance of the map.

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.

var showsTraffic: Bool

A Boolean value indicating whether the map displays traffic information.