AWFStyledMapItem
Objective-C
@protocol AWFStyledMapItem <AWFStylable>
                Swift
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 (nonatomic, copy, readwrite) 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 - 
                  
                  
The layer type this map item belongs to.
Declaration
Objective-C
@optional @property (nonatomic, assign, unsafe_unretained, readwrite) AWFMapLayer _Nonnull layerType;Swift
optional var layerType: AWFMapLayer { get set } - 
                  
                  
Creates and returns a new
AWFStyledMapIteminstance initialized with theobject.Declaration
Objective-C
- (nonnull instancetype)initWithWeatherObject:(id)object;Swift
init(weatherObject object: Any!)Parameters
objectThe
AWFWeatherObjectto use with the map item. This object determines the style to be applied during initialization.Return Value
An initialized styled map item.
 
View on GitHub
        AWFStyledMapItem Protocol Reference