AWFTileSource

An AWFTileSource object is a map content source that represents and manages a tile resources on a map.

  • The template for generating tile URLs (read-only).

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *URLTemplate;

    Swift

    var urlTemplate: String! { get }
  • The amount of transparency to apply to the overlay.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat alpha;

    Swift

    var alpha: CGFloat { get set }
  • Declaration

    Objective-C

    @property (readonly, nonatomic) AWFOverlayMetadata *metadata;

    Swift

    var metadata: AWFOverlayMetadata! { get }
  • Current date of the data being used in the content source.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSDate *date;

    Swift

    var date: Date! { get set }
  • The time offset string relative to now being used with the content source.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) NSString *offset;

    Swift

    var offset: String! { get set }
  • A Boolean value that determine whether the data being maintained by this content source represents data in the future.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL isFutureLayer;

    Swift

    var isFutureLayer: Bool { get set }
  • The animation object associated with the content source.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) AWFImageAnimation *animation;

    Swift

    var animation: AWFImageAnimation! { get set }
  • The maximum number of intervals to show during an animation.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) NSInteger maximumIntervalsForAnimation;

    Swift

    var maximumIntervalsForAnimation: Int { get set }
  • Initializes and returns a tile overlay object using the specified tile-access template.

    Declaration

    Objective-C

    - (id)initWithURLTemplate:(NSString *)URLTemplate;

    Swift

    init!(urlTemplate URLTemplate: String!)

    Parameters

    URLTemplate

    A string that can be used to build a URL to access tile images. The string specified can use the placeholder values {x}, {y}, {z}, {scale} and {time} as stand-ins for the x and y tile indexes, zoom level, resolution of the tile image and timestamp.

    Return Value

    An initialized tile overlay object.

  • Returns the URL for the specified tile path structure.

    Declaration

    Objective-C

    - (NSURL *)URLForTilePath:(AWFTileOverlayPath *)path;

    Swift

    func url(forTilePath path: AWFTileOverlayPath!) -> URL!

    Parameters

    path

    The path structure that identifies the specific tile.

    Return Value

    The URL to use to retrive the tile.

  • Returns the tile URL for the region defined by the specified coordinate bounds, image size and time string for the data relative to the current time.

    Declaration

    Objective-C

    - (NSURL *)URLForBounds:(AWFMapCoordinateBounds *)bounds
                       size:(CGSize)size
                  timestamp:(NSString *)timestamp;

    Swift

    func url(for bounds: AWFMapCoordinateBounds!, size: CGSize, timestamp: String!) -> URL!

    Parameters

    bounds

    The region’s coordinate bounds.

    size

    The image size.

    timestamp

    The time string to use for the data.

  • Cancels any active requests removes any cached data.

    Declaration

    Objective-C

    - (void)reset;

    Swift

    func reset()