Instance Method

removeOverlays(_:)

Removes one or more overlay objects from the map.

Declaration

func removeOverlays(_ overlays: [MKOverlay])

Parameters

overlays

An array of objects, each of which conforms to the MKOverlay protocol.

Discussion

This method removes the specified overlays regardless of which level each one is in. Removing an overlay also removes its corresponding renderer, if one is in use. If a given overlay object is not associated with the map view, it is ignored.

See Also

Removing Overlays

func remove(MKOverlay)

Removes a single overlay object from the map.