Contents

MKOverlayPathRenderer

The visual representation of a path-based overlay.

Declaration

class MKOverlayPathRenderer

Overview

Use this renderer when a CGPath object defines your overlay’s shape. By default, this renderer fills the overlay’s shape and represents the strokes of the path using its current attributes.

You can use this class as-is or subclass it to define additional drawing behaviors. If you subclass it, override the createPath() method and use that method to build the appropriate path object. To change the path, invalidate it and recreate the path using the new data your subclass obtains.

Topics

Creating and managing the path

Accessing the drawing attributes

Drawing the path

See Also

Custom shape overlays