Other Type Definitions

The following type definitions are available globally.

  • A block that is passed an object conforming to the AWFAnnotation protocol, allowing you to customize the text that is displayed for that annotation on the map.

    Declaration

    Objective-C

    typedef void (^AWFCalloutFormatter)(NSObject<AWFAnnotation> *_Nonnull)

    Swift

    typealias AWFCalloutFormatter = (AWFAnnotation) -> Void

    Parameters

    annotation

    Map annotation to format the callout text for.

  • AWFLegendRange defines the min and max values covered by a legend.

    See more

    Declaration

    Objective-C

    typedef struct AWFLegendRange AWFLegendRange
  • AWFDataScale defines the min and max values as well as the data interval for a legend.

    See more

    Declaration

    Objective-C

    typedef struct AWFDataScale AWFDataScale
  • The AWFMapLayer type defines the supported weather layers for a weather map.

    Note

    When using Swift, reference these values as their enumerated types instead of the Objective-C constants: let layer = AWFMapLayer.rivers

    Declaration

    Objective-C

    typedef NSString *AWFMapLayer

    Swift

    struct AWFMapLayer : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable
  • The AWFRasterBlendMode type defines the supported color and alpha blend modes supported by raster map layers.

    Note

    When using Swift, reference these values as their enumerated types instead of the Objective-C constants: let blend = AWFRasterBlendMode.sourceOver

    Declaration

    Objective-C

    typedef NSString *AWFRasterBlendMode

    Swift

    struct AWFRasterBlendMode : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable
  • The AWFRasterMask type defines the supported masks that can be applied to a raster map layer.

    Note

    When using Swift, reference these values as their enumerated types instead of the Objective-C constants: let mask = AWFRasterMask.waterFlat

    Declaration

    Objective-C

    typedef NSString *AWFRasterMask

    Swift

    struct AWFRasterMask : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable
  • The AWFLayerGroup type defines the various groups a layer type can belong to.

    Note

    When using Swift, reference these values as their enumerated types instead of the Objective-C constants: let group = AWFLayerGroup.raster

    Declaration

    Objective-C

    typedef NSString *AWFLayerGroup

    Swift

    typealias AWFLayerGroup = NSString