Instance Method

mapView(_:didAdd:)

Tells the delegate that one or more renderer objects were added to the map.

Declaration

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

Parameters

mapView

The map view that added the renderer objects.

renderers

The renderer objects that were added.

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 this method is called, the specified renderers have already been added to the map.

See Also

Managing the Display of Overlays

func mapView(MKMapView, rendererFor: MKOverlay) -> MKOverlayRenderer

Asks the delegate for a renderer object to use when drawing the specified overlay.