ArcGIS Runtime SDK for iOS: AGSFeatureLayer.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSFeatureLayer.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 2021 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/AGSPopupSource.h>
30 #import <ArcGIS/AGSTimeAware.h>
31 #import <ArcGIS/AGSColor.h>
32 
33 
34 
38 typedef NS_ENUM(NSInteger, AGSFeatureRenderingMode) {
42 };
43 
48 typedef NS_ENUM(NSInteger, AGSSelectionMode) {
52 };
53 
58 typedef NS_ENUM(NSInteger, AGSFeatureTilingMode) {
61 };
62 
63 @class AGSFeatureTable;
64 @class AGSRenderer;
65 @class AGSFeature;
66 @class AGSQueryParameters;
68 @class AGSItem;
69 @class AGSLabelDefinition;
71 
72 @protocol AGSCancelable;
73 
175 
176 #pragma mark -
177 #pragma mark ␄initializers
178 
187 -(instancetype)initWithFeatureTable:(AGSFeatureTable *)featureTable;
188 
193 -(instancetype)init ;
194 
200 -(instancetype)initWithItem:(AGSItem*)item layerID:(NSInteger)layerID;
201 
208 +(instancetype)featureLayerWithItem:(AGSItem*)item layerID:(NSInteger)layerID;
209 
215 +(instancetype)featureLayer ;
216 
225 +(instancetype)featureLayerWithFeatureTable:(AGSFeatureTable*)featureTable;
226 
227 #pragma mark -
228 #pragma mark properties
229 
241 @property (nonatomic, copy, readwrite) NSString *definitionExpression;
242 
246 @property (nonatomic, assign, readwrite) BOOL labelsEnabled;
247 
251 @property (nullable, nonatomic, strong, readwrite) AGSRenderer *renderer;
252 
257 @property (nonatomic, assign, readwrite) AGSFeatureRenderingMode renderingMode;
258 
263 @property (nonatomic, assign, readwrite) BOOL scaleSymbols;
264 
268 @property (nullable, nonatomic, strong, readwrite) AGSLayerSceneProperties *sceneProperties;
269 
274 @property (nullable, nonatomic, strong, readwrite) AGSColor *selectionColor ;
275 
280 @property (nonatomic, assign, readwrite) double selectionWidth ;
281 
285 @property (nullable, nonatomic, strong, readonly) AGSFeatureTable *featureTable;
286 
290 @property (nonatomic, strong, readonly) NSMutableArray<AGSLabelDefinition*> *labelDefinitions;
291 
295 @property (nonatomic, assign, readwrite) NSTimeInterval refreshInterval;
296 
302 @property (nonatomic, copy, readonly) NSDictionary<NSString *, id> *unknownJSON;
303 
309 @property (nonatomic, copy, readonly) NSDictionary<NSString *, id> *unsupportedJSON;
310 
317 @property (nonatomic, assign, readwrite) AGSFeatureTilingMode tilingMode;
318 
319 #pragma mark -
320 #pragma mark methods
321 
325 -(void)resetFeaturesVisible;
326 
331 -(void)resetRenderer;
332 
339 -(void)setFeature:(AGSFeature *)feature visible:(BOOL)visible;
340 
346 -(void)setFeatures:(NSArray<AGSFeature*> *)features visible:(BOOL)visible;
347 
351 -(void)clearSelection;
352 
358 -(id<AGSCancelable>)getSelectedFeaturesWithCompletion:(void(^)(AGSFeatureQueryResult *__nullable featureQueryResult, NSError *__nullable error))completion;
359 
366 -(void)selectFeature:(AGSFeature *)feature;
367 
373 -(void)selectFeatures:(NSArray<AGSFeature*> *)features;
374 
382 -(id<AGSCancelable>)selectFeaturesWithQuery:(AGSQueryParameters *)parameters mode:(AGSSelectionMode)mode completion:(nullable void (^)(AGSFeatureQueryResult *__nullable featureQueryResult, NSError *__nullable error))completion;
383 
384 
390 -(void)unselectFeature:(AGSFeature *)feature;
391 
396 -(void)unselectFeatures:(NSArray<AGSFeature*> *)features;
397 
398 @end
399 
400 
#define AGSColor
Definition: AGSColor.h:34
AGSFeatureRenderingMode
Definition: AGSFeatureLayer.h:38
@ AGSFeatureRenderingModeAutomatic
Definition: AGSFeatureLayer.h:39
@ AGSFeatureRenderingModeStatic
Definition: AGSFeatureLayer.h:40
@ AGSFeatureRenderingModeDynamic
Definition: AGSFeatureLayer.h:41
AGSSelectionMode
Definition: AGSFeatureLayer.h:48
@ AGSSelectionModeAdd
Definition: AGSFeatureLayer.h:49
@ AGSSelectionModeNew
Definition: AGSFeatureLayer.h:50
@ AGSSelectionModeSubtract
Definition: AGSFeatureLayer.h:51
AGSFeatureTilingMode
Definition: AGSFeatureLayer.h:58
@ AGSFeatureTilingModeDisabled
Definition: AGSFeatureLayer.h:60
@ AGSFeatureTilingModeEnabledWhenSupported
Definition: AGSFeatureLayer.h:59
A representation of a real-world object on a map.
Definition: AGSFeature.h:47
A layer that can visualize vector/feature data.
Definition: AGSFeatureLayer.h:174
AGSFeatureTilingMode tilingMode
Definition: AGSFeatureLayer.h:317
instancetype init()
AGSLayerSceneProperties * sceneProperties
Definition: AGSFeatureLayer.h:268
NSString * definitionExpression
Definition: AGSFeatureLayer.h:241
AGSRenderer * renderer
Definition: AGSFeatureLayer.h:251
AGSFeatureTable * featureTable
Definition: AGSFeatureLayer.h:285
NSMutableArray< AGSLabelDefinition * > * labelDefinitions
Definition: AGSFeatureLayer.h:290
AGSColor * selectionColor
Definition: AGSFeatureLayer.h:274
NSDictionary< NSString *, id > * unknownJSON
Definition: AGSFeatureLayer.h:302
BOOL scaleSymbols
Definition: AGSFeatureLayer.h:263
void resetFeaturesVisible()
double selectionWidth
Definition: AGSFeatureLayer.h:280
NSDictionary< NSString *, id > * unsupportedJSON
Definition: AGSFeatureLayer.h:309
instancetype featureLayer()
AGSFeatureRenderingMode renderingMode
Definition: AGSFeatureLayer.h:257
NSTimeInterval refreshInterval
Definition: AGSFeatureLayer.h:295
BOOL labelsEnabled
Definition: AGSFeatureLayer.h:246
Result of queries that return features.
Definition: AGSFeatureQueryResult.h:49
A source for dataset containing geographic features or non-spatial records.
Definition: AGSFeatureTable.h:66
Object representing a unit of content.
Definition: AGSItem.h:44
An object that defines the text, appearance, and position of labels for features within a given scale...
Definition: AGSLabelDefinition.h:223
An abstract base class for all layers.
Definition: AGSLayer.h:194
Layer properties that apply to 3D scenes.
Definition: AGSLayerSceneProperties.h:38
Parameters to perform a query using AGSFeatureTable.
Definition: AGSQueryParameters.h:45
An abstract base class for renderers.
Definition: AGSRenderer.h:55
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:38
A source for popups.
Definition: AGSPopupSource.h:40
A protocol that can be implemented by layers that support time.
Definition: AGSTimeAware.h:41