AWFMapContentSource
Objective-C
@interface AWFMapContentSource : NSObject
Swift
class AWFMapContentSource : NSObject
An AWFMapContentSource object is the base class that represents an data source on a map. This base class should not be
used directly. Instead, AWFMapContentSource subclasses should be used to provide the necessary functionality for that
layer type.
-
An identifier string for the layer.
A default identifier will be generated at initialization but can be overridden afterwards.
Declaration
Objective-C
@property (nonatomic, copy) NSString *_Nonnull identifier;Swift
var identifier: String { get set } -
The layer type for the source.
Declaration
Objective-C
@property (nonatomic, readonly) AWFMapLayer _Nonnull layerType;Swift
unowned(unsafe) var layerType: NSString { get } -
The map strategy that is managing the layer.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<AWFMapStrategy> strategy;Swift
weak var strategy: AWFMapStrategy? { get set } -
The coordinate bounds currently covered by the layer.
Declaration
Objective-C
@property (nonatomic, strong, nullable) AWFMapCoordinateBounds *visibleBounds;Swift
var visibleBounds: AWFMapCoordinateBounds? { get set } -
The receiver’s delegate.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<AWFMapContentDelegate> delegate;Swift
weak var delegate: AWFMapContentDelegate? { get set } -
Initializes and returns the layer object and associates it with the specified layer type.
Declaration
Objective-C
- (nonnull instancetype)initWithLayerType:(nonnull AWFMapLayer)layerType;Swift
init(layerType: AWFMapLayer)Parameters
layerTypeThe layer type to associate the layer with
Return Value
An initialized layer instance
-
Initializes and returns a layer object and associates it with the specified layer type and map strategy.
Declaration
Objective-C
- (nonnull instancetype)initWithLayerType:(nonnull AWFMapLayer)layerType mapStrategy:(nullable id<AWFMapStrategy>)strategy;Swift
init(layerType: AWFMapLayer, mapStrategy strategy: AWFMapStrategy?)Parameters
layerTypeThe layer type to associate the layer with
strategyThe map strategy object to use for managing the layer
Return Value
An initialized layer instance
-
Returns the
AWFWeatherDataTypeassociated with the specified layer type.Declaration
Objective-C
+ (id)weatherDataTypeForLayerType:(nonnull AWFMapLayer)layerType;Swift
class func weatherDataType(forLayerType layerType: AWFMapLayer) -> Any!Parameters
layerTypeThe layer type
Return Value
The
AWFWeatherDataTypefor the layer type, orAWFWeatherDataTypeNoneif not specified
View on GitHub
AWFMapContentSource Class Reference