Instance Method

remove(_:)

Removes a single overlay object from the map.

Declaration

func remove(_ overlay: MKOverlay)

Parameters

overlay

The overlay object to remove.

Discussion

This method removes the overlay regardless of the level that it is in. Removing an overlay also removes its corresponding renderer, if one is in use. If the specified overlay is not currently associated with the map view, this method does nothing.

See Also

Removing Overlays

func removeOverlays([MKOverlay])

Removes one or more overlay objects from the map.