AWFMKAnnotation
Objective-C
@interface AWFMKAnnotation
: NSObject <MKAnnotation, AWFAnnotation, AWFStyledMapItem>
Swift
class AWFMKAnnotation : NSObject, MKAnnotation, AWFAnnotation, AWFStyledMapItem
An AWFMKAnnotation
object adopts the AWFAnnotation
protocol and represents a stylable annotation that is added to an Apple MapKit map view.
-
The group identifier for the annotation. 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 string containing the annotation’s title.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *title;
Swift
var title: String? { get set }
-
The string containing the annotation’s subtitle.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *subtitle;
Swift
var subtitle: String? { get set }
-
The center point (specified as a map coordinate) of the annotation.
Declaration
Objective-C
@property (nonatomic, readonly) CLLocationCoordinate2D coordinate;
Swift
var coordinate: CLLocationCoordinate2D { get }
-
The style associated with the annotation.
Declaration
Objective-C
@property (nonatomic, strong, nullable) AWFAnnotationStyle *style;
Swift
var style: AWFAnnotationStyle? { get set }
-
The model object that is represented by the annotation.
Declaration
Objective-C
@property (nonatomic, strong, readonly, nullable) AWFWeatherObject *modelObject
-
Whether or not the instance belongs to a timeline animation.
Declaration
Objective-C
@property (nonatomic) BOOL belongsToTimelineAnimation;
Swift
var belongsToTimelineAnimation: Bool { get set }