Adds a single overlay object to the map.
- iOS 4.0+
- macOS 10.9+
- tvOS 9.0+
The overlay object to add. This object must conform to the
The specified object is added to the group of overlay objects in the
above level. Adding an overlay causes the map view to begin monitoring the area represented by that 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 an overlay from a map, use the