AWFStyledMapItem

@protocol AWFStyledMapItem <AWFStylable>

The AWFStyledMapItem protocol defines the required and optional methods for a map overlay item that can be styled. This is typically used for map overlays like annotation, polygons and polylines.

  • The group identifier for the map item. This controls which style is used when multiple styles are available for a single data layer type.

    Declaration

    Objective-C

    @required
    @property (readwrite, copy, nonatomic) NSString *_Nonnull identifier;

    Swift

    var identifier: String { get set }
  • The model object associated with the map item.

    Declaration

    Objective-C

    @property (readonly, nonatomic, strong) AWFWeatherObject *modelObject

    Swift

    optional var modelObject: UnsafeMutablePointer<Int32> { get }
  • The layer type this map item belongs to.

    Declaration

    Objective-C

    @optional
    @property (assign, readwrite, nonatomic) AWFMapLayer _Nonnull layerType;

    Swift

    optional var layerType: AWFMapLayer { get set }
  • Creates and returns a new AWFStyledMapItem instance initialized with the object.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithGeographicObject:(id)object;

    Swift

    init(geographicObject object: Any!)

    Parameters

    object

    The AWFGeographicObject to use with the map item. This object determines the style to be applied during initialization.

    Return Value

    An initialized styled map item.