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.
- initWithPolygon:(iOS 7.0)
Initializes and returns a new overlay view using the specified polygon overlay object.
- (instancetype)initWithPolygon:(MKPolygon *)
The polygon overlay containing the information about the area to be drawn. This object must have at least three points defining the polygon in order for this view to draw the corresponding path.
A new polygon overlay view.
Available in iOS 4.0 and later.
Deprecated in iOS 7.0.
polygon(iOS 7.0) Property