Type Method

cameraLookingAtCenterCoordinate:fromEyeCoordinate:eyeAltitude:

Returns a new camera object using the specified viewing angle information.

Declaration

+ (instancetype)cameraLookingAtCenterCoordinate:(CLLocationCoordinate2D)centerCoordinate fromEyeCoordinate:(CLLocationCoordinate2D)eyeCoordinate eyeAltitude:(CLLocationDistance)eyeAltitude;

Parameters

centerCoordinate

The coordinate point on which the map should be centered.

eyeCoordinate

The coordinate point at which to place the camera. If the value for this parameter is equal to the value in the centerCoordinate parameter, the map is displayed as if the camera is looking straight down. If this point is offset from the centerCoordinate value, the map is displayed with an appropriate heading and pitch angle.

eyeAltitude

The altitude (in meters) above the ground at which to place the camera.

Return Value

A new camera object initialized with the specified information.

Discussion

This method calculates the required pitch and heading angles to accommodate the specified eye position and altitude.

See Also

Getting a Camera Object

+ camera

Returns a new camera object for you to configure.

+ cameraLookingAtCenterCoordinate:fromDistance:pitch:heading:

Returns a new camera object using the specified distance, pitch, and heading information.