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
offset
value.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) -> URL
Parameters
x
The tile column
y
Tile tile row
zoomLevel
The 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) -> URL
Parameters
x
The tile column
y
Tile tile row
zoomLevel
The zoom level
includeLayers
Whether the layers string should be included in the URL
scaledForScreen
Whether 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?) -> 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 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) -> URL
Parameters
x
The tile column
y
The tile row
zoomLevel
The zoom level
offset
The time offset for the data relative to now
includeLayers
Whether the layers string should be included in the URL
scaledForScreen
Whether 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) -> 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: CGSize, offset: String?) -> URL
Parameters
bounds
The region’s coordinate bounds
size
The image size
offset
The 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) -> URL
Parameters
bounds
The region’s coordinate bounds
size
The image size
offset
The time offset for the data relative to now
includeLayers
Whether the layers string should be included in the URL
scaledForScreen
Whether the tile URL should account for the device’s screen scale