Instance Method

removeOverlay:

Removes a single overlay object from the map.

Declaration

- (void)removeOverlay:(id<MKOverlay>)overlay;

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

- removeOverlays:

Removes one or more overlay objects 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