Contents

insertOverlay(_:at:)

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

Declaration

func insertOverlay(_ overlay: any MKOverlay, at index: Int)

Parameters

  • overlay:

    The overlay object to insert.

  • index:

    The index at which to insert the overlay object. If this value is greater than the number of objects in the Overlays property, this method appends the object to the end of the array.

Discussion

This method inserts the overlay into the MKOverlayLevel.aboveLabels level.

See Also

Adding and inserting overlays