Other Type Definitions
The following type definitions are available globally.
-
A block that is passed an object conforming to the
AWFAnnotationprotocol, 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) -> VoidParameters
annotationMap annotation to format the callout text for.
-
See moreAWFLegendRangedefines the min and max values covered by a legend.Declaration
Objective-C
typedef struct AWFLegendRange AWFLegendRange -
See moreAWFDataScaledefines the min and max values as well as the data interval for a legend.Declaration
Objective-C
typedef struct AWFDataScale AWFDataScale -
The
AWFMapLayertype 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.riversDeclaration
Objective-C
typedef NSString *AWFMapLayerSwift
struct AWFMapLayer : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable -
The
AWFRasterBlendModetype 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.sourceOverDeclaration
Objective-C
typedef NSString *AWFRasterBlendModeSwift
struct AWFRasterBlendMode : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable -
The
AWFRasterMasktype 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.waterFlatDeclaration
Objective-C
typedef NSString *AWFRasterMaskSwift
struct AWFRasterMask : _ObjectiveCBridgeable, Hashable, Equatable, _SwiftNewtypeWrapper, RawRepresentable, @unchecked Sendable -
The
AWFLayerGrouptype 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.rasterDeclaration
Objective-C
typedef NSString *AWFLayerGroupSwift
typealias AWFLayerGroup = NSString
View on GitHub
Other Type Definitions Reference