Instance Method


Inserts one overlay object below another.


func insertOverlay(_ overlay: MKOverlay, below sibling: MKOverlay)



The overlay object to insert.


An existing object in the overlays array. This object must exist in the array and must not be nil.


This method inserts the overlay into the MKOverlayLevel.aboveLabels level and positions it relative to the specified sibling. When displayed, this leads to the overlay’s contents being displayed beneath that of its sibling. If sibling is not in the same map level, this method appends the overlay to the end of the list of overlays at the indicated level.

See Also

Adding and Inserting Overlays

func addOverlay(MKOverlay, level: MKOverlayLevel)

Adds the overlay object to the map at the specified level.

func addOverlays([MKOverlay], level: MKOverlayLevel)

Adds an array of overlay objects to the map at the specified level.

func addOverlay(MKOverlay)

Adds a single overlay object to the map.

func addOverlays([MKOverlay])

Adds an array of overlay objects to the map.

func insertOverlay(MKOverlay, at: Int, level: MKOverlayLevel)

Inserts an overlay object into the level at the specified index.

func insertOverlay(MKOverlay, at: Int)

Inserts an overlay object into the list associated with the map.

func insertOverlay(MKOverlay, above: MKOverlay)

Inserts one overlay object on top of another.

func exchangeOverlay(MKOverlay, with: MKOverlay)

Exchanges the positions of the two overlay objects.

func exchangeOverlay(at: Int, withOverlayAt: Int)

Exchanges the position of two overlay objects.