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) -> [MKOverlay]

The overlay objects in the specified level of the map.

func view(for: MKOverlay) -> MKOverlayView

Returns the view associated with the overlay object if any.

Deprecated
enum MKOverlayLevel

Constants indicating the position of overlays relative to other content.