Class

MKPolygonRenderer

The visual representation for a single polygon overlay.

Declaration

class MKPolygonRenderer : MKOverlayPathRenderer

Overview

This renderer creates the polygon overlay by first filling the shape and then representing its outline with strokes. You can change the color and other drawing attributes of the polygon by modifying the properties inherited from the parent class.

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.

class MKMultiPolygon

A collection of multiple closed polygon shapes.

Beta
class MKMultiPolygonRenderer

The visual representation for a multipolygon overlay.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software