Class

MKPolygonView

Provides the visual representation for an MKPolygon annotation object.

Declaration

@interface 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.

Topics

Initializing a Polygon View

- initWithPolygon:

Initializes and returns a new overlay view using the specified polygon overlay object.

Accessing the Polygon Overlay

polygon

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

Relationships

Inherits From