Class

MKPolygonView

Provides the visual representation for an MKPolygon annotation object.

Declaration

class MKPolygonView : MKOverlayPathView

Overview

This view fills and strokes the area represented by the annotation. You can change the color and other drawing attributes of the polygon by modifying the properties inherited from the MKOverlayPathView class. This class is typically used as is and not subclassed.

In iOS 7 and later, use the MKPolygonRenderer class to display polygon overlays instead.

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