ArcGIS Runtime SDK for iOS: AGSFeatureLayer.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSFeatureLayer.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 1995-2020 ESRI
3 
4  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
5  Unpublished material - all rights reserved under the
6  Copyright Laws of the United States and applicable international
7  laws, treaties, and conventions.
8 
9  For additional information, contact:
10  Environmental Systems Research Institute, Inc.
11  Attn: Contracts and Legal Services Department
12  380 New York Street
13  Redlands, California, 92373
14  USA
15 
16  email: contracts@esri.com
17  */
18  //Required for Globals API doc
20 
21 #import <ArcGIS/AGSLayer.h>
22 #import <ArcGIS/AGSPopupSource.h>
23 #import <ArcGIS/AGSTimeAware.h>
24 #import <ArcGIS/AGSColor.h>
25 
26 
27 
32 typedef NS_ENUM(NSInteger, AGSFeatureRenderingMode) {
36 };
37 
43 typedef NS_ENUM(NSInteger, AGSSelectionMode) {
47 };
48 
49 @class AGSFeatureTable;
50 @class AGSRenderer;
51 @class AGSFeature;
52 @class AGSQueryParameters;
54 @class AGSItem;
55 @class AGSLabelDefinition;
57 
58 @protocol AGSCancelable;
59 
150 
151 #pragma mark -
152 #pragma mark initializers
153 
158 -(instancetype)initWithFeatureTable:(AGSFeatureTable *)featureTable;
159 
165 -(instancetype)init ;
166 
173 -(instancetype)initWithItem:(AGSItem*)item layerID:(NSInteger)layerID;
174 
181 +(instancetype)featureLayerWithItem:(AGSItem*)item layerID:(NSInteger)layerID;
182 
188 +(instancetype)featureLayer ;
189 
194 +(instancetype)featureLayerWithFeatureTable:(AGSFeatureTable*)featureTable;
195 
196 #pragma mark -
197 #pragma mark properties
198 
210 @property (nonatomic, copy, readwrite) NSString *definitionExpression;
211 
215 @property (nonatomic, assign, readwrite) BOOL labelsEnabled;
216 
220 @property (nullable, nonatomic, strong, readwrite) AGSRenderer *renderer;
221 
226 @property (nonatomic, assign, readwrite) AGSFeatureRenderingMode renderingMode;
227 
232 @property (nonatomic, assign, readwrite) BOOL scaleSymbols;
233 
237 @property (nullable, nonatomic, strong, readwrite) AGSLayerSceneProperties *sceneProperties;
238 
243 @property (nullable, nonatomic, strong, readwrite) AGSColor *selectionColor ;
244 
249 @property (nonatomic, assign, readwrite) double selectionWidth ;
250 
254 @property (nullable, nonatomic, strong, readonly) AGSFeatureTable *featureTable;
255 
259 @property (nonatomic, strong, readonly) NSMutableArray<AGSLabelDefinition*> *labelDefinitions;
260 
264 @property (nonatomic, assign, readwrite) NSTimeInterval refreshInterval;
265 
271 @property (nonatomic, copy, readonly) NSDictionary<NSString *, id> *unknownJSON;
272 
278 @property (nonatomic, copy, readonly) NSDictionary<NSString *, id> *unsupportedJSON;
279 
280 #pragma mark -
281 #pragma mark methods
282 
286 -(void)resetFeaturesVisible;
287 
292 -(void)resetRenderer;
293 
300 -(void)setFeature:(AGSFeature *)feature visible:(BOOL)visible;
301 
307 -(void)setFeatures:(NSArray<AGSFeature*> *)features visible:(BOOL)visible;
308 
312 -(void)clearSelection;
313 
319 -(id<AGSCancelable>)getSelectedFeaturesWithCompletion:(void(^)(AGSFeatureQueryResult *__nullable featureQueryResult, NSError *__nullable error))completion;
320 
327 -(void)selectFeature:(AGSFeature *)feature;
328 
334 -(void)selectFeatures:(NSArray<AGSFeature*> *)features;
335 
343 -(id<AGSCancelable>)selectFeaturesWithQuery:(AGSQueryParameters *)parameters mode:(AGSSelectionMode)mode completion:(nullable void (^)(AGSFeatureQueryResult *__nullable featureQueryResult, NSError *__nullable error))completion;
344 
345 
351 -(void)unselectFeature:(AGSFeature *)feature;
352 
357 -(void)unselectFeatures:(NSArray<AGSFeature*> *)features;
358 
359 @end
360 
361 
A protocol that can be implemented by layers that support time.
Definition: AGSTimeAware.h:33
Result of queries that return features.
Definition: AGSFeatureQueryResult.h:42
Layer properties that apply to 3D scenes.
Definition: AGSLayerSceneProperties.h:30
NSMutableArray< AGSLabelDefinition * > * labelDefinitions
Definition: AGSFeatureLayer.h:259
A source for dataset containing geographic features or non-spatial records.
Definition: AGSFeatureTable.h:59
NSDictionary< NSString *, id > * unknownJSON
Definition: AGSFeatureLayer.h:271
An abstract base class for renderers.
Definition: AGSRenderer.h:48
NSString * definitionExpression
Definition: AGSFeatureLayer.h:210
AGSRenderer * renderer
Definition: AGSFeatureLayer.h:220
instancetype featureLayer()
Parameters to perform a query using AGSFeatureTable.
Definition: AGSQueryParameters.h:37
An object that defines the text, appearance and position of labels for features for a given scale ran...
Definition: AGSLabelDefinition.h:80
A layer that can visualize vector/feature data.
Definition: AGSFeatureLayer.h:149
double selectionWidth
Definition: AGSFeatureLayer.h:249
Definition: AGSFeatureLayer.h:44
AGSFeatureRenderingMode renderingMode
Definition: AGSFeatureLayer.h:226
AGSSelectionMode
Definition: AGSFeatureLayer.h:43
Definition: AGSFeatureLayer.h:33
NSTimeInterval refreshInterval
Definition: AGSFeatureLayer.h:264
AGSColor * selectionColor
Definition: AGSFeatureLayer.h:243
void resetFeaturesVisible()
Object representing a unit of content.
Definition: AGSItem.h:36
Definition: AGSFeatureLayer.h:45
instancetype init()
Definition: AGSFeatureLayer.h:34
Definition: AGSFeatureLayer.h:35
Definition: AGSFeatureLayer.h:46
An abstract base class for all layers.
Definition: AGSLayer.h:169
AGSLayerSceneProperties * sceneProperties
Definition: AGSFeatureLayer.h:237
NSDictionary< NSString *, id > * unsupportedJSON
Definition: AGSFeatureLayer.h:278
BOOL labelsEnabled
Definition: AGSFeatureLayer.h:215
A representation of a real-world object on a map.
Definition: AGSFeature.h:40
AGSFeatureRenderingMode
Definition: AGSFeatureLayer.h:32
BOOL scaleSymbols
Definition: AGSFeatureLayer.h:232
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:32
A source for popups.
Definition: AGSPopupSource.h:34