Adds an array of overlay objects to the map.
- iOS 4.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
An array of objects, each of which must conform to the
The specified objects are added to the group of overlay objects in the
MKOverlay level. Adding an overlay causes the map view to begin monitoring the area represented by that overlay. As soon as the bounding rectangle of the overlay intersects the visible portion of the map, the map view tries to draw the overlay. As soon as the bounding rectangle of an overlay intersects the visible portion of the map, the map view adds a corresponding overlay view to the map. The overlay view is provided by the
map method of the map view’s delegate object.
To remove multiple overlays from a map, use the