AWFWeatherMapViewController

Objective-C

@interface AWFWeatherMapViewController
    : UIViewController <AWFWeatherMapDelegate, AWFWeatherMapDataSource,
                        AWFTimelineViewDelegate,
                        AWFMapOptionsViewControllerDelegate>

Swift

class AWFWeatherMapViewController : UIViewController, AWFWeatherMapDelegate, AWFWeatherMapDataSource, AWFTimelineViewDelegate, AWFMapOptionsViewControllerDelegate

An AWFWeatherMapViewController provides a easy way to display a fully-functional weather map that automatically sets up the necessary map view and control views associated with a weather map.

  • The base map type to use for the weather map.

    Declaration

    Objective-C

    @property (nonatomic) AWFWeatherMapType weatherMapType;

    Swift

    var weatherMapType: AWFWeatherMapType { get set }
  • The configuration for the weather map.

    Declaration

    Objective-C

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

    Swift

    var config: AWFWeatherMapConfig { get set }
  • The weather map that is displayed.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) AWFWeatherMap *_Nonnull weatherMap;

    Swift

    var weatherMap: AWFWeatherMap { get }
  • The timeline view for the weather map. This view displays a timeline control allowing the user to scrub between the start and end times.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) AWFTimelineView *_Nonnull timelineView;

    Swift

    var timelineView: AWFTimelineView { get }
  • The basic control view for the weather map. This view displays a basic play/stop button and current date and time of the timeline.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) AWFBasicControlView *_Nonnull controlView;

    Swift

    var controlView: AWFBasicControlView { get }
  • The legend view for the weather map, which is dynamic based on the data layers currently visible on the map.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) AWFLegendView *_Nonnull legendView;

    Swift

    var legendView: AWFLegendView { get }
  • Whether or not the weather map should auto-refresh its active data layers at regular intervals. The default is YES.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isAutorefreshEnabled) BOOL autorefreshEnabled;

    Swift

    var isAutorefreshEnabled: Bool { get set }
  • Options view controller associated with the map.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) AWFMapOptionsViewController *_Nonnull optionsController;

    Swift

    var optionsController: AWFMapOptionsViewController { get }
  • Presents the map options view controller as a modal view.

    Declaration

    Objective-C

    - (void)showOptions;

    Swift

    func showOptions()
  • Controls the visibility of the legend view.

    Declaration

    Objective-C

    - (void)showLegendView:(BOOL)show animated:(BOOL)animated;

    Swift

    func showLegendView(_ show: Bool, animated: Bool)

    Parameters

    show

    YES if the legend view should be shown, otherwise NO.

    animated

    A Boolean value indicating whether the update should be animated.