Instance Property


The overlay objects currently associated with the map view.


var overlays: [MKOverlay] { get }


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

func overlays(in: MKOverlayLevel) -> [MKOverlay]

The overlay objects in the specified level of the map.

func renderer(for: MKOverlay) -> MKOverlayRenderer?

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

func view(for: MKOverlay) -> MKOverlayView

Returns the view associated with the overlay object if any.

enum MKOverlayLevel

Constants indicating the position of overlays relative to other content.