Instance Property

camera

The camera used for determining the appearance of the map.

Declaration

@property(nonatomic, copy) MKMapCamera *camera;

Discussion

A camera object defines a point above the map’s surface from which to view the map. Applying a camera to a map can have the effect of giving the map a 3D-like appearance. You can use a camera to rotate the map so that it is oriented to match the user’s heading or to apply a pitch angle to tilt the plane of the map. (You can check the map’s pitchEnabled property to determine whether the map can be pitched.)

Assigning a new camera to this property updates the map immediately and without animating the change. If you want to animate changes in camera position, use the setCamera:animated: method instead.

You must not set this property to nil. To restore the map to a flat appearance, apply a camera with a pitch angle of 0, which yields a camera looking straight down onto the map surface.

See Also

Configuring the Map’s Appearance

- setCamera:animated:

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

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