removeOverlays(_:)
Removes one or more overlay objects from the map.
Declaration
func removeOverlays(_ overlays: [any 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. The method ignores an overlay object if it isn’t associated with the map view.