Contents

mapView(_:didAdd:)

Tells the delegate when the map view adds one or more renderer objects to the map.

Declaration

optional func mapView(_ mapView: MKMapView, didAdd renderers: [MKOverlayRenderer])

Parameters

  • mapView:

    The map view that adds the renderer objects.

  • renderers:

    The renderer objects that the map view adds.

Discussion

The map view adds renderer objects when it needs them to draw their contents, which might be prior to those contents appearing onscreen. It calls this method to let you know that the renderer is active and in use. By the time the map view calls this method, it has already added specified renderers to the map.

See Also

Managing the display of overlays