AWFWeatherMapStyle
Objective-C
@interface AWFWeatherMapStyle : NSObject
Swift
class AWFWeatherMapStyle : NSObject
An AWFWeatherMapStyle defines the styles used for various elements displayed on a weather map, such as overlays, annotations and legends.
-
The overlay styles keyed by layer type.
Declaration
Objective-C
@property (nonatomic, readonly) NSDictionary<AWFMapLayer, id<AWFStyleProvider>> *_Nonnull overlays;Swift
var overlays: [AWFMapLayer : AWFStyleProvider] { get } -
The annotation styles keyed by layer type.
Declaration
Objective-C
@property (nonatomic, readonly) NSDictionary<AWFMapLayer, id<AWFStyleProvider>> *_Nonnull annotations;Swift
var annotations: [AWFMapLayer : AWFStyleProvider] { get } -
The polygon styles keyed by layer type.
Declaration
Objective-C
@property (nonatomic, readonly) NSDictionary<AWFMapLayer, id<AWFStyleProvider>> *_Nonnull polygons;Swift
var polygons: [AWFMapLayer : AWFStyleProvider] { get } -
Declaration
Objective-C
@property (nonatomic, readonly) NSDictionary *_Nonnull legends;Swift
var legends: [AnyHashable : Any] { get } -
Returns the style for the specified layer type.
Declaration
Objective-C
- (nullable id<AWFStyleProvider>)styleForLayerType: (nonnull AWFMapLayer)layerType;Swift
func style(forLayerType layerType: AWFMapLayer) -> AWFStyleProvider?Parameters
layerTypeThe layer type.
Return Value
The style specification for the layer type if it exists, otherwise
nil. -
Sets the style to use for the specified layer type.
Declaration
Objective-C
- (void)setStyle:(nonnull id<AWFStyleProvider>)style forLayerType:(nonnull AWFMapLayer)layerType;Swift
func setStyle(_ style: AWFStyleProvider, forLayerType layerType: AWFMapLayer)Parameters
styleThe style to associate with the layer type.
layerTypeThe layer type.
View on GitHub
AWFWeatherMapStyle Class Reference