MKPolygonView Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/MapKit.framework
Availability
Available in iOS 4.0 and later.
Companion guide
Declared in
MKPolygonView.h
Related sample code

Overview

The MKPolygonView class provides the visual representation for an MKPolygon annotation object. 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.

Tasks

Initializing a Polygon View

Accessing the Polygon Overlay