AWFMapTileURL
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
offsetvalue.Declaration
Objective-C
@property (nonatomic, readonly) 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 (nonatomic, readonly) NSString *_Nonnull boundingBoxURLPath;Swift
var boundingBoxURLPath: String { get } -
The full URL template required for requesting a tile using a bounding box but excluding layer information.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull boundingBoxURLPathExcludingLayers;Swift
var boundingBoxURLPathExcludingLayers: 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) -> URLParameters
xThe tile column
yTile tile row
zoomLevelThe zoom level
-
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 includingLayers:(BOOL)includeLayers scaledForScreen:(BOOL)scaledForScreen;Swift
func tileURLFor(x: Int, y: Int, zoomLevel: UInt, includingLayers includeLayers: Bool, scaledForScreen: Bool) -> URLParameters
xThe tile column
yTile tile row
zoomLevelThe zoom level
includeLayersWhether the layers string should be included in the URL
scaledForScreenWhether the tile URL should account for the device’s screen scale
-
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?) -> URLParameters
xThe tile column
yThe tile row
zoomLevelThe zoom level
offsetThe time offset for the data relative to now
-
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 includingLayers:(BOOL)includeLayers scaledForScreen:(BOOL)scaledForScreen;Swift
func tileURLFor(x: Int, y: Int, zoomLevel: UInt, offset: String?, includingLayers includeLayers: Bool, scaledForScreen: Bool) -> URLParameters
xThe tile column
yThe tile row
zoomLevelThe zoom level
offsetThe time offset for the data relative to now
includeLayersWhether the layers string should be included in the URL
scaledForScreenWhether the tile URL should account for the device’s screen scale
-
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: CGSize) -> URLParameters
boundsThe region’s coordinate bounds
sizeThe 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: CGSize, offset: String?) -> URLParameters
boundsThe region’s coordinate bounds
sizeThe image size
offsetThe time offset for the data relative to now
-
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 includingLayers:(BOOL)includeLayers scaledForScreen:(BOOL)scaledForScreen;Swift
func tileURL(for bounds: AWFMapCoordinateBounds, size: CGSize, offset: String?, includingLayers includeLayers: Bool, scaledForScreen: Bool) -> URLParameters
boundsThe region’s coordinate bounds
sizeThe image size
offsetThe time offset for the data relative to now
includeLayersWhether the layers string should be included in the URL
scaledForScreenWhether the tile URL should account for the device’s screen scale
View on GitHub
AWFMapTileURL Class Reference