AWFMapboxMapStrategy
@interface AWFMapboxMapStrategy
An AWFAppleMapStrategy
object implements the AWFMapStrategy
protocol and provides the necessary functionality for managing a AWFWeatherMap
configured
with an MKMapView
instance and MapBox base map.
-
The receiver’s delegate.
The delegate should implement the methods of the `AWFMapStrategyDelegate` protocol.
Declaration
Objective-C
@property (readwrite, nonatomic) id delegate;
Swift
weak var delegate: AnyObject! { get set }
-
Initializes and returns a map strategy associated with the specified weather map instance while specifying whether to load Mapbox metadata and markers.
Declaration
Objective-C
- (instancetype)initWithWeatherMap:(id)weatherMap includeMetadata:(id)includeMetadata includeMarkers:(id)includeMarkers;
Swift
init!(weatherMap: Any!, includeMetadata: Any!, includeMarkers: Any!)
Parameters
weatherMap
The weather map instance associated with the map strategy
includeMetadata
Whether to load the map’s metadata including center coordinate and zoom limits
includeMarkers
Whether to load the map’s markers
Return Value
An initialized map strategy