Instance Method


Returns the view associated with the overlay object if any.


func view(for overlay: MKOverlay) -> MKOverlayView



The overlay object whose view you want.

Return Value

The view associated with the overlay object or nil if the overlay is not onscreen.

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 renderer(for: MKOverlay) -> MKOverlayRenderer?

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

enum MKOverlayLevel

Constants indicating the position of overlays relative to other content.