AWFMapTileURL

@interface AWFMapTileURL : AWFMapURL

AWFMapTileURL is a subclass of AWFMapURL that is responsible for configuring a URL for interacting with the Aeris Maps Platform (AMP) tile imagery service. These images are intended to be displayed using mapping libraries, such as Apple Maps, Mapbox or Google Maps.

  • The full URL template required for the tile request by including the current offset value.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull URLPathWithOffset;

    Swift

    var urlPathWithOffset: String { get }
  • The full URL template required for requesting a tile using a bounding box.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull boundingBoxURLPath;

    Swift

    var boundingBoxURLPath: String { get }
  • Returns the tile URL for the specified tile coordinate and zoom level.

    Declaration

    Objective-C

    - (nonnull NSURL *)tileURLForX:(NSInteger)x
                                 y:(NSInteger)y
                         zoomLevel:(NSUInteger)zoomLevel;

    Swift

    func tileURLFor(x: Int, y: Int, zoomLevel: UInt) -> URL

    Parameters

    x

    The tile column

    y

    Tile tile row

    zoomLevel

    The zoom level

  • Returns the tile URL for the specified tile coordinate, zoom level and time offset for the data relative to the current time.

    Declaration

    Objective-C

    - (nonnull NSURL *)tileURLForX:(NSInteger)x
                                 y:(NSInteger)y
                         zoomLevel:(NSUInteger)zoomLevel
                            offset:(nullable NSString *)offset;

    Swift

    func tileURLFor(x: Int, y: Int, zoomLevel: UInt, offset: String?) -> URL

    Parameters

    x

    The tile column

    y

    The tile row

    zoomLevel

    The zoom level

    offset

    The time offset for the data relative to now

  • Returns the tile URL for the region defined by the specified coordinate bounds and image size.

    Declaration

    Objective-C

    - (nonnull NSURL *)tileURLForBounds:(nonnull AWFMapCoordinateBounds *)bounds
                                   size:(CGSize)size;

    Swift

    func tileURL(for bounds: AWFMapCoordinateBounds, size: Any!) -> URL

    Parameters

    bounds

    The region’s coordinate bounds

    size

    The image size

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

    Declaration

    Objective-C

    - (nonnull NSURL *)tileURLForBounds:(nonnull AWFMapCoordinateBounds *)bounds
                                   size:(CGSize)size
                                 offset:(nullable NSString *)offset;

    Swift

    func tileURL(for bounds: AWFMapCoordinateBounds, size: Any!, offset: String?) -> URL

    Parameters

    bounds

    The region’s coordinate bounds

    size

    The image size

    offset

    The time offset for the data relative to now