Instance Property

overlays

The overlay objects currently associated with the map view.

Declaration

@property(nonatomic, readonly) NSArray<id<MKOverlay>> *overlays;

Discussion

This property contains the union of all overlays at the different levels of the map. The objects in this array must adopt the MKOverlay protocol. If no overlays are associated with the map view, the value of this property is an empty array.

The order of the objects in this array does not necessary reflect their visual order on the map.

See Also

Accessing Overlays

overlaysInLevel:

The overlay objects in the specified level of the map.

rendererForOverlay:

Returns the renderer object used to draw the contents of the specified overlay object.

viewForOverlay:

Returns the view associated with the overlay object if any.

Deprecated