Class

MKPolygonRenderer

The visual representation for a polygon overlay.

Declaration

class MKPolygonRenderer : MKOverlayPathRenderer

Overview

This renderer fills and strokes the polygon represented by first filling the shape and then stroking its outline. You can change the color and other drawing attributes of the polygon by modifying the properties inherited from the parent class. You typically use this class as is and do not subclass it.

Topics

Creating a Polygon Renderer

init(polygon: MKPolygon)

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

Accessing the Polygon Overlay Object

var polygon: MKPolygon

The polygon object that contains the information used to draw the overlay’s contents.

Relationships

Conforms To

See Also

Polygon

class MKPolygon

A closed polygon shape.