Instance Method


Adds an array of annotation objects to the map view.


func addAnnotations(_ annotations: [MKAnnotation])



An array of annotation objects. Each object in the array must conform to the MKAnnotation protocol. The map view retains the individual annotation objects.

See Also

Annotating the Map

var annotations: [MKAnnotation]

The complete list of annotations associated with the receiver.

func addAnnotation(MKAnnotation)

Adds the specified annotation to the map view.

func removeAnnotation(MKAnnotation)

Removes the specified annotation object from the map view.

func removeAnnotations([MKAnnotation])

Removes an array of annotation objects from the map view.

func annotations(in: MKMapRect) -> Set<AnyHashable>

Returns the annotation objects located in the specified map rectangle.