AWFAppleMapStrategy

Objective-C

@interface AWFAppleMapStrategy : NSObject <AWFMapStrategy, MKMapViewDelegate>

Swift

class 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 (nonatomic, readonly) AWFMapStrategyType strategyType;

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) 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 (nonatomic, strong, readonly) id<AWFMapOverlayFactory> _Nonnull overlayFactory;

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic, readonly) CLLocationCoordinate2D centerCoordinate;

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSInteger zoomLevel;

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    The delegate should implement the methods of the AWFMapStrategyDelegate protocol.

    Declaration

    Objective-C

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

    Swift

    weak var delegate: AWFMapStrategyDelegate? { get set }
  • Returns the default annotation view for the specified annotation as configured and styled by the SDK.

    Declaration

    Objective-C

    - (nonnull MKAnnotationView *)defaultAnnotationViewForAnnotation:
        (nonnull id<MKAnnotation>)annotation;

    Swift

    func defaultAnnotationView(forAnnotation annotation: MKAnnotation) -> MKAnnotationView

    Parameters

    annotation

    Annotation to return the default MKAnnotationView for

  • Returns the default overlay renderer for the specified overlay as configured and styled by the SDK.

    Declaration

    Objective-C

    - (nonnull MKOverlayRenderer *)defaultRendererForOverlay:
        (nonnull id<MKOverlay>)overlay;

    Swift

    func defaultRenderer(forOverlay overlay: MKOverlay) -> MKOverlayRenderer

    Parameters

    overlay

    Overlay to return the MKOverlayRenderer or layer for