Instance Method

renderer(for:)

Returns the renderer object used to draw the contents of the specified overlay object.

Declaration

func renderer(for overlay: MKOverlay) -> MKOverlayRenderer?

Parameters

overlay

The overlay object whose renderer you want.

Return Value

The renderer object in use for the specified overlay or nil if the overlay is not onscreen.

Discussion

This method returns the renderer object that your map delegate provided in its mapView(_:rendererFor:) method.

See Also

Accessing Overlays

var overlays: [MKOverlay]

The overlay objects currently associated with the map view.

func overlays(in: MKOverlayLevel)

The overlay objects in the specified level of the map.