Instance Method

initWithPolygon:

Initializes and returns a new renderer that handles drawing for the specified polygon overlay object.

Declaration

- (instancetype)initWithPolygon:(MKPolygon *)polygon;

Parameters

polygon

The polygon overlay containing information about the area to be drawn. This object must have at least three points defining the polygon to draw. This parameter must not be nil.

Return Value

An initialized polygon renderer object.