AWFMKPolygon
Objective-C
@interface AWFMKPolygon : MKPolygon <AWFPolygon, AWFStyledMapItem>
Swift
class AWFMKPolygon : MKPolygon, AWFPolygon, AWFStyledMapItem
An AWFMKPolygon
object is an instance of MKPolygon
that represents a stylable polygon that is added to an Apple MapKit map view.
-
The group identifier for the polygon. This controls which style is used when multiple styles are available for a single layer source type.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *identifier;
Swift
var identifier: String? { get set }
-
The style associated with the polygon.
Declaration
Objective-C
@property (nonatomic, strong, nullable) AWFPolygonStyle *style;
Swift
var style: AWFPolygonStyle? { get set }
-
The model object that is represented by the polygon.
Declaration
Objective-C
@property (readonly, nonatomic, strong, nullable) AWFWeatherObject *modelObject
-
The geometric centroid of the polygon.
Declaration
Objective-C
@property (nonatomic) CLLocationCoordinate2D centroid;
Swift
var centroid: CLLocationCoordinate2D { get set }
-
The area of the polygon.
Declaration
Objective-C
@property (nonatomic) CGFloat area;
Swift
var area: CGFloat { get set }