AWFMKPolygon
@interface AWFMKPolygon : MKPolygon <AWFPolygon, AWFStyledMapItem>
An AWFMKPolygon
object is an instance of MKPolygon
that represents a stylable polygon that is added to a 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 (readwrite, copy, nonatomic, nullable) NSString *identifier;
Swift
var identifier: String? { get set }
-
The style associated with the polygon.
Declaration
Objective-C
@property (readwrite, strong, nonatomic, 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
Swift
var modelObject: UnsafeMutablePointer<Int32>? { get }
-
The geometric centroid of the polygon.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) CLLocationCoordinate2D centroid;
Swift
var centroid: CLLocationCoordinate2D { get set }
-
The area of the polygon.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat area;
Swift
var area: CGFloat { get set }