Creating annotations in MKMapView with an altitude component

212 views Asked by At

This seems to be possible because the MKUserLocation annotation is placed at the user's current altitude. However, the protocol for MKAnnotation only includes a coordinate. Is there a way to adjust its altitude as well? Thanks!

1

There are 1 answers

1
N.Raval On

Here is method :-

  [mapView showAnnotations:yourAnnotationArray animated:YES];

You can pull from an array stored in the map view:

  yourAnnotationArray = mapView.annotations;

and quickly adjust the altitude :-

  mapView.camera.altitude *= 1.4;

try multipling the cameras altitude by a fraction of one, like mapView.camera.altitude *= .85; for a closer viewport