Instance Method


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


- (void)addOverlay:(id<MKOverlay>)overlay level:(MKOverlayLevel)level;



The overlay object to add. This object must conform to the MKOverlay protocol.


The map level at which to place the overlay. For a list of possible values for this parameter, see MKOverlayLevel.


Positioning an overlay at a specific level places that overlay’s visual representation in front of or behind other map content such as map labels and point-of-interest icons.

This method adds the specified overlay to the end of the list of overlay objects at the given level. Adding an overlay also causes the map view to begin monitoring the area they represent. As soon as the bounding rectangle of the overlay intersects the visible portion of the map, the map view calls your delegate’s mapView:rendererForOverlay: method to get the renderer object to use when drawing the overlay.

To remove an overlay from a map, use the removeOverlay: method.

See Also

Adding and Inserting Overlays

- addOverlays:level:

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

- addOverlay:

Adds a single overlay object to the map.

- addOverlays:

Adds an array of overlay objects to the map.

- insertOverlay:atIndex:level:

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

- insertOverlay:atIndex:

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

- insertOverlay:aboveOverlay:

Inserts one overlay object on top of another.

- insertOverlay:belowOverlay:

Inserts one overlay object below another.

- exchangeOverlay:withOverlay:

Exchanges the positions of the two overlay objects.

- exchangeOverlayAtIndex:withOverlayAtIndex:

Exchanges the position of two overlay objects.