AWFRasterSource

Objective-C

@interface AWFRasterSource : AWFMapContentSource

Swift

class AWFRasterSource : AWFMapContentSource

An AWFRasterSource object represents a map content source that maintains a single image on a map.

  • The map overlay managed by the content source.

    The type of this overlay is dependent upon which map strategy is being used.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) id _Nonnull overlay;

    Swift

    var overlay: Any { get }
  • The amount of transparency to apply to the overlay.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat alpha;

    Swift

    var alpha: CGFloat { get set }
  • Initializes and returns a content source object located at the specified coordinate bounds and associates it with the specified map strategy.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithBounds:(nonnull AWFMapCoordinateBounds *)bounds;

    Swift

    init(bounds: AWFMapCoordinateBounds)

    Parameters

    bounds

    The coordinate bounds describing the region covered by the content source.

    Return Value

    The initialized content source object.

  • Initializes and returns a content source object located at the specified coordinate bounds for the provided layer type.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithBounds:(nonnull AWFMapCoordinateBounds *)bounds
                                 layerType:(nullable AWFMapLayer)layerType;

    Swift

    init(bounds: AWFMapCoordinateBounds, layerType: AWFMapLayer?)

    Parameters

    bounds

    The coordinate bounds describing the region covered by the content source.

    layerType

    The layer type for the content source.

    Return Value

    An initialized content source object.