Instance Method

setCamera:animated:

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

Declaration

- (void)setCamera:(MKMapCamera *)camera animated:(BOOL)animated;

Parameters

camera

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

animated

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

See Also

Configuring the Map’s Appearance

camera

The camera used for determining the appearance of the map.

showsPointsOfInterest

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

showsBuildings

A Boolean indicating whether the map displays extruded building information.

showsCompass

A Boolean indicating whether the map displays a compass control.

showsZoomControls

A Boolean indicating whether the map displays zoom controls.

showsScale

A Boolean indicating whether the map shows scale information.

showsTraffic

A Boolean value indicating whether the map displays traffic information.