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.

pointOfInterestFilter

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

Beta
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.

showsPointsOfInterest

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