Instance Method

removeOverlays:

Removes one or more overlay objects from the map.

Declaration

- (void)removeOverlays:(NSArray<id<MKOverlay>> *)overlays;

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

- removeOverlay:

Removes a single overlay object from the map.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software