AWFWeatherMapDataSource

@protocol AWFWeatherMapDataSource <NSObject>

The AWFWeatherMapDataSource protocol is adopted by an object that provides a weather map with the information it needs for representing data on the map.

  • Asks the data source for the content view to display in an annotation’s callout view.

    Declaration

    Objective-C

    - (nullable UIView *)weatherMap:(nonnull AWFWeatherMap *)weatherMap
           calloutViewForAnnotation:(nonnull id<AWFAnnotation>)annotation;

    Swift

    optional func weatherMap(_ weatherMap: AWFWeatherMap, calloutViewFor annotation: AWFAnnotation) -> UIView?

    Parameters

    weatherMap

    The weather map requesting the object

    annotation

    The annotation associated with the callout view

    Return Value

    A view to be displayed in the callout for the annotation