AWFMKAnnotation

@interface AWFMKAnnotation
    : NSObject <MKAnnotation, AWFAnnotation, AWFStyledMapItem>

An AWFMKAnnotation object adopts the AWFAnnotation protocol and represents a stylable annotation that is added to a 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 (readwrite, copy, nonatomic, nullable) NSString *identifier;

    Swift

    var identifier: String? { get set }
  • The string containing the annotation’s title.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *title;

    Swift

    var title: String? { get set }
  • The string containing the annotation’s subtitle.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *subtitle;

    Swift

    var subtitle: String? { get set }
  • The center point (specified as a map coordinate) of the annotation.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CLLocationCoordinate2D coordinate;

    Swift

    var coordinate: CLLocationCoordinate2D { get }
  • The style associated with the annotation.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, 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

    Swift

    var modelObject: UnsafeMutablePointer<Int32>? { get }
  • Whether or not the instance belongs to a timeline animation.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL belongsToTimelineAnimation;

    Swift

    var belongsToTimelineAnimation: Bool { get set }