ArcGIS Runtime SDK for iOS: AGSImageTiledLayer.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSImageTiledLayer.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2022 ESRI
3 
4  All rights reserved under the copyright laws of the United States
5  and applicable international laws, treaties, and conventions.
6 
7  This material is licensed for use under the Esri Master License
8  Agreement (MLA), and is bound by the terms of that agreement.
9  You may redistribute and use this code without modification,
10  provided you adhere to the terms of the MLA and include this
11  copyright notice.
12 
13  See use restrictions at http://www.esri.com/legal/pdfs/mla_e204_e300/english
14 
15  For additional information, contact:
16  Environmental Systems Research Institute, Inc.
17  Attn: Contracts and Legal Services Department
18  380 New York Street
19  Redlands, California, 92373
20  USA
21 
22  email: contracts@esri.com
23  */
24  //Required for Globals API doc
26 
27 #import <Foundation/Foundation.h>
28 #import <ArcGIS/AGSImageAdjustmentLayer.h>
29 
30 
31 
36 typedef NS_ENUM(NSInteger, AGSNoDataTileBehavior) {
41 };
42 
43 @class AGSTileInfo;
44 @class AGSTileKey;
45 
65 
69  @property (nonatomic, copy, readwrite) NSString *attribution;
70 
74 @property (nullable, nonatomic, strong, readonly) AGSTileInfo * tileInfo;
75 
104 @property (nonatomic, assign, readwrite) AGSNoDataTileBehavior noDataTileBehavior;
105 
106 @end
107 
108 
117 
118 #pragma mark -
119 #pragma mark initializers
120 
126 -(instancetype)initWithTileInfo:(AGSTileInfo*)tileInfo fullExtent:(AGSEnvelope *)fullExtent;
127 
134 +(instancetype)imageTiledLayerWithTileInfo:(AGSTileInfo*)tileInfo fullExtent:(AGSEnvelope *)fullExtent;
135 
136 #pragma mark -
137 #pragma mark properties
138 
142 @property (nullable, nonatomic, strong) void (^tileRequestHandler)(AGSTileKey *tileKey);
143 
147 @property (nullable, nonatomic, strong) void (^cancelTileRequestHandler)(AGSTileKey *tileKey);
148 
149 #pragma mark -
150 #pragma mark methods
151 
158 -(void)respondWithTileKey:(AGSTileKey*)tileKey
159  data:(nullable NSData*)data
160  error:(nullable NSError*)error;
161 
166 -(void)respondWithNoDataTileForTileKey:(AGSTileKey*)tileKey;
167 
168 @end
169 
170 
AGSNoDataTileBehavior
Definition: AGSImageTiledLayer.h:36
@ AGSNoDataTileBehaviorBlank
Definition: AGSImageTiledLayer.h:38
@ AGSNoDataTileBehaviorUpSample
Definition: AGSImageTiledLayer.h:37
@ AGSNoDataTileBehaviorShow
Definition: AGSImageTiledLayer.h:39
@ AGSNoDataTileBehaviorUnknown
Definition: AGSImageTiledLayer.h:40
Category for implementing custom tiled layers.
Definition: AGSImageTiledLayer.h:116
void(^ cancelTileRequestHandler)(AGSTileKey *tileKey)
void(^ tileRequestHandler)(AGSTileKey *tileKey)
A geometry that represents a rectangular shape.
Definition: AGSEnvelope.h:55
A base class for layers that allow color adjustments.
Definition: AGSImageAdjustmentLayer.h:37
A base class for layers that display cached maps. You would typically work with one or more sub-class...
Definition: AGSImageTiledLayer.h:65
NSString * attribution
Definition: AGSImageTiledLayer.h:69
AGSTileInfo * tileInfo
Definition: AGSImageTiledLayer.h:74
AGSNoDataTileBehavior noDataTileBehavior
Definition: AGSImageTiledLayer.h:104
The tiling scheme of a tiled layer.
Definition: AGSTileInfo.h:45
A tile key.
Definition: AGSTileKey.h:38