ArcGIS Runtime SDK for iOS: AGSAnnotationLayer.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSAnnotationLayer.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/AGSLayer.h>
29 #import <ArcGIS/AGSRemoteResource.h>
30 #import <ArcGIS/AGSFeatureLayer.h>
31 #import <ArcGIS/AGSCancelable.h>
32 #import <ArcGIS/AGSLabelBarrierWeight.h>
33 
34 
35 
37 @class AGSItem;
38 @class AGSFeature;
40 @class AGSQueryParameters;
41 
88 
89 #pragma mark -
90 #pragma mark initializers
91 
92 
93 
101 -(instancetype)initWithFeatureTable:(AGSArcGISFeatureTable *)featureTable;
102 
110 +(instancetype)annotationLayerWithFeatureTable:(AGSArcGISFeatureTable *)featureTable;
111 
118 -(instancetype)initWithItem:(AGSItem *)item
119  serviceLayerID:(NSInteger)serviceLayerID;
120 
127 +(instancetype)annotationLayerWithItem:(AGSItem *)item
128  serviceLayerID:(NSInteger)serviceLayerID;
129 
135 -(instancetype)initWithURL:(NSURL *)URL;
136 
142 +(instancetype)annotationLayerWithURL:(NSURL *)URL;
143 
144 #pragma mark -
145 #pragma mark properties
146 
151 @property (nonatomic, assign, readwrite) AGSLabelBarrierWeight barrierWeight;
152 
164 @property (nonatomic, copy, readwrite) NSString *definitionExpression;
165 
169 @property (nullable, nonatomic, strong, readonly) AGSArcGISFeatureTable *featureTable;
170 
175 @property (nonatomic, assign, readonly) NSInteger serviceLayerID;
176 
188 @property (nonatomic, assign, readonly) double referenceScale;
189 
190 #pragma mark -
191 #pragma mark methods
192 
196 - (void)clearSelection;
197 
201 - (void)resetFeaturesVisible;
202 
209 - (id<AGSCancelable>)selectedFeaturesWithCompletion:(void(^)(AGSFeatureQueryResult * __nullable result, NSError * __nullable error))completion;
210 
215 - (void)selectFeature:(AGSFeature *)feature;
216 
221 - (void)selectFeatures:(NSArray<AGSFeature *> *)features;
222 
232 - (id<AGSCancelable>)selectFeaturesWithParameters:(AGSQueryParameters *)parameters
233  mode:(AGSSelectionMode)mode
234  completion:(void(^)(AGSFeatureQueryResult * __nullable result, NSError * __nullable error))completion;
235 
241 - (void)setFeatures:(NSArray<AGSFeature *> *)features
242  visible:(BOOL)visible;
243 
249 - (void)setFeature:(AGSFeature *)feature
250  visible:(BOOL)visible;
251 
256 - (void)unselectFeature:(AGSFeature *)feature;
257 
263 - (void)unselectFeatures:(NSArray<AGSFeature *> *)features;
264 
265 @end
266 
267 
AGSSelectionMode
Definition: AGSFeatureLayer.h:50
AGSLabelBarrierWeight
Definition: AGSLabelBarrierWeight.h:41
A layer that can visualize annotation text data. Annotation can be used to symbolize text on your map...
Definition: AGSAnnotationLayer.h:87
double referenceScale
Definition: AGSAnnotationLayer.h:188
AGSArcGISFeatureTable * featureTable
Definition: AGSAnnotationLayer.h:169
NSInteger serviceLayerID
Definition: AGSAnnotationLayer.h:175
NSString * definitionExpression
Definition: AGSAnnotationLayer.h:164
AGSLabelBarrierWeight barrierWeight
Definition: AGSAnnotationLayer.h:151
An ArcGIS specific source for dataset containing geographic features or non-spatial records.
Definition: AGSArcGISFeatureTable.h:69
A representation of a real-world object on a map.
Definition: AGSFeature.h:47
Result of queries that return features.
Definition: AGSFeatureQueryResult.h:49
Object representing a unit of content.
Definition: AGSItem.h:43
An abstract base class for all layers.
Definition: AGSLayer.h:201
Parameters to perform a query using AGSFeatureTable.
Definition: AGSQueryParameters.h:45
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38
A protocol adopted by classes that access remote network resources that have the potential to be secu...
Definition: AGSRemoteResource.h:40