ArcGIS Runtime SDK for iOS
100.15
|
Category for implementing custom tiled layers.
This category organizes the methods that are relevant to creating a custom tiled layer. The custom layer can work with local tiled data or remote tiled services depending upon how it is implemented.
AGSServiceImageTiledLayer(CustomTiledLayer)
for creating custom tiled layers based on remote tiles. Instance Methods | |
(instancetype) | - initWithTileInfo:fullExtent: |
(void) | - respondWithNoDataTileForTileKey: |
(void) | - respondWithTileKey:data:error: |
Class Methods | |
(instancetype) | + imageTiledLayerWithTileInfo:fullExtent: |
Properties | |
void(^ | cancelTileRequestHandler )(AGSTileKey *tileKey) |
void(^ | tileRequestHandler )(AGSTileKey *tileKey) |
+ (instancetype) imageTiledLayerWithTileInfo: | (AGSTileInfo *) | tileInfo | |
fullExtent: | (AGSEnvelope *) | fullExtent | |
Creates a custom tiled layer with the provided details.
tileInfo | specifying the tiling scheme used by the layer. |
fullExtent | of the layer. |
Extends class AGSImageTiledLayer.
- (instancetype) initWithTileInfo: | (AGSTileInfo *) | tileInfo | |
fullExtent: | (AGSEnvelope *) | fullExtent | |
Creates a custom tiled layer with the provided details.
tileInfo | specifying the tiling scheme used by the layer. |
fullExtent | of the layer. |
Extends class AGSImageTiledLayer.
- (void) respondWithNoDataTileForTileKey: | (AGSTileKey *) | tileKey |
Needs to be invoked when the custom layer does not find a tile.
tileKey | specifying the tile that was requested. |
Extends class AGSImageTiledLayer.
- (void) respondWithTileKey: | (AGSTileKey *) | tileKey | |
data: | (nullable NSData *) | data | |
error: | (nullable NSError *) | error | |
Needs to be invoked when the custom layer has successfully retrieved the tile requested in #tileRequestHandler
, or if an error is encountered while retrieving the tile.
tileKey | specifying the tile that was requested. |
data | for the retrieved tile if the operation was successful. |
error | encountered while retrieving the tile if the operation failed. |
Extends class AGSImageTiledLayer.
|
readwritenonatomicstrong |
The handler that will be invoked when a requested tile is no longer needed. This should be assigned a block that contains the business logic specific to the custom layer for canceling the requested tile.
Extends class AGSImageTiledLayer.
|
readwritenonatomicstrong |
The handler that will be invoked when a new tile is needed. This should be assigned a block that contains the business logic specific to the custom layer for fetching the requested tile. The block should eventually invoke #respondWithTileKey:data:error:
if a tile is retrieved or an error is encountered. Alternatively, it can invoke #respondWithNoDataTileForTileKey
if no tile is available.
Extends class AGSImageTiledLayer.