removeOverlay(_:)
Removes a single overlay object from the map.
Declaration
func removeOverlay(_ overlay: any MKOverlay)Parameters
- overlay:
The overlay object to remove.
Discussion
This method removes the overlay regardless of the level that it’s in. Removing an overlay also removes its corresponding renderer, if one is in use. If the specified overlay isn’t associated with the map view, this method does nothing.