insertOverlay(_:below:)
Inserts one overlay object below another.
Declaration
func insertOverlay(_ overlay: any MKOverlay, below sibling: any MKOverlay)Parameters
- overlay:
The overlay object to insert.
- sibling:
An existing object in the Overlays array. This object needs to exist in the array and can’t be
nil.
Discussion
This method inserts the overlay into the MKOverlayLevel.aboveLabels level and positions it relative to the specified sibling. When displaying it, the map view displays the overlay’s contents beneath that of its sibling. If the sibling isn’t in the same map level, this method appends the overlay to the end of the list of overlays at the indicated level.