Initializes and returns the overlay view and associates it with the specified overlay object.
- iOS 4.0–7.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
The overlay object to use when drawing the overlay on the map. This object provides the data needed to draw the overlay’s shape. This object is retained by the overlay view.
An initialized overlay object.
Upon initialization, the frame of the overlay view is set to
CGRect. The map view sets the size and position of the view at display time, and you should not change those values yourself.