AWFAppleMapStrategy

@interface AWFAppleMapStrategy : NSObject <AWFMapStrategy, MKMapViewDelegate>

An AWFAppleMapStrategy object implements the AWFMapStrategy protocol and provides the necessary functionality for managing a AWFWeatherMap configured with an MKMapView instance that interacts with Apple’s MapKit.

  • The map strategy type for the instance.

    Declaration

    Objective-C

    @property (readonly, nonatomic) AWFMapStrategyType strategyType;

    Swift

    var strategyType: AWFMapStrategyType { get }
  • The map view being managed by the strategy.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) MKMapView *_Nonnull mapView;

    Swift

    var mapView: MKMapView { get set }
  • The weather map configuration associated with the weather map.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) AWFWeatherMapConfig *_Nonnull config;

    Swift

    var config: AWFWeatherMapConfig { get }
  • The factory object responsible for generating the map overlays and annotations required by MKMapView.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        id<AWFMapOverlayFactory> _Nonnull overlayFactory;

    Swift

    var overlayFactory: AWFMapOverlayFactory { get }
  • The annotation callout view used when selecting annotations.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) AWFMapCallout *_Nonnull callout;

    Swift

    var callout: AWFMapCallout { get }
  • The complete list of overlays associated with the map view.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSArray *_Nonnull overlays;

    Swift

    var overlays: [Any] { get }
  • The complete list of annotations associated with the map view.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSArray *_Nonnull annotations;

    Swift

    var annotations: [Any] { get }
  • The visible map coordinate bounds of the map view.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        AWFMapCoordinateBounds *_Nonnull coordinateBounds;

    Swift

    var coordinateBounds: AWFMapCoordinateBounds { get }
  • The map coordinate at the center of the map view.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CLLocationCoordinate2D centerCoordinate;

    Swift

    var centerCoordinate: CLLocationCoordinate2D { get }
  • The zoom level of the map view.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSInteger zoomLevel;

    Swift

    var zoomLevel: Int { get }
  • The internal view used for rendering animated raster data.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        AWFMKAnimationContainerView *_Nonnull animationContainerView;

    Swift

    var animationContainerView: AWFMKAnimationContainerView { get }
  • The map view’s delegate.

    Setting this value does not change the primary MKMapViewDelegate associated with the map view. Delegate events are forwarded to the delegate assigned by this value. The strategy must remain the only delegate to the map view assocated with this strategy.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) id<MKMapViewDelegate>
        mapViewDelegate;

    Swift

    unowned(unsafe) var mapViewDelegate: MKMapViewDelegate? { get set }
  • The receiver’s delegate.

    The delegate should implement the methods of the AWFMapStrategyDelegate protocol.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic, nullable) id<AWFMapStrategyDelegate>
        delegate;

    Swift

    unowned(unsafe) var delegate: AWFMapStrategyDelegate? { get set }