ArcGIS Runtime SDK for iOS: AGSGraphicsOverlay.h Source File
ArcGIS Runtime SDK for iOS  100.15
AGSGraphicsOverlay.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/AGSObject.h>
29 #import <ArcGIS/AGSPopupSource.h>
30 #import <ArcGIS/AGSColor.h>
31 
32 
33 
56 typedef NS_ENUM(NSInteger, AGSGraphicsRenderingMode) {
59 };
60 
61 @class AGSEnvelope;
62 @class AGSRenderer;
63 @class AGSGraphic;
64 @class AGSPopupDefinition;
66 @class AGSLabelDefinition;
67 
83 
84 #pragma mark -
85 #pragma mark initializers
86 
90 +(instancetype)graphicsOverlay;
91 
92 #pragma mark -
93 #pragma mark properties
94 
98 @property (nonatomic, strong, readonly) AGSEnvelope *extent;
99 
109 @property (nonatomic, strong, readonly) NSMutableArray<AGSGraphic*> *graphics;
110 
114 @property (nonatomic, assign, readwrite) double maxScale;
115 
119 @property (nonatomic, assign, readwrite) double minScale;
120 
125 @property (nonatomic, assign, readwrite) float opacity;
126 
130 @property (nonatomic, copy, readwrite) NSString *overlayID;
131 
137 @property (nullable, nonatomic, strong, readwrite) AGSRenderer *renderer;
138 
142 @property (nonatomic, assign, readwrite) AGSGraphicsRenderingMode renderingMode;
143 
148 @property (nullable, nonatomic, strong, readwrite) AGSColor *selectionColor ;
149 
153 @property (nonatomic, assign, readwrite, getter=isVisible) BOOL visible;
154 
158 @property (nonatomic, assign, readwrite) BOOL labelsEnabled;
159 
163 @property (nonatomic, strong, readonly) NSMutableArray<AGSLabelDefinition*> *labelDefinitions;
164 
168 @property (nullable, nonatomic, strong, readwrite) AGSLayerSceneProperties *sceneProperties;
169 
184 @property (nonatomic, assign, readwrite) BOOL scaleSymbols;
185 
186 #pragma mark -
187 #pragma mark methods
188 
192 -(void)clearSelection;
193 
198 -(NSArray<AGSGraphic*>*)selectedGraphics;
199 
204 -(void)selectGraphics:(NSArray<AGSGraphic*> *)graphics;
205 
210 -(void)unselectGraphics:(NSArray<AGSGraphic*> *)graphics;
211 
212 @end
213 
214 
#define AGSColor
Definition: AGSColor.h:34
AGSGraphicsRenderingMode
Contains a collection of graphics for display in a map or scene view.
Definition: AGSGraphicsOverlay.h:56
@ AGSGraphicsRenderingModeStatic
Definition: AGSGraphicsOverlay.h:58
@ AGSGraphicsRenderingModeDynamic
Definition: AGSGraphicsOverlay.h:57
A geometry that represents a rectangular shape.
Definition: AGSEnvelope.h:55
A graphic on top of a map.
Definition: AGSGraphic.h:58
An overlay to display graphics on the map.
Definition: AGSGraphicsOverlay.h:82
AGSLayerSceneProperties * sceneProperties
Definition: AGSGraphicsOverlay.h:168
float opacity
Definition: AGSGraphicsOverlay.h:125
BOOL visible
Definition: AGSGraphicsOverlay.h:153
instancetype graphicsOverlay()
double minScale
Definition: AGSGraphicsOverlay.h:119
AGSEnvelope * extent
Definition: AGSGraphicsOverlay.h:98
BOOL scaleSymbols
Definition: AGSGraphicsOverlay.h:184
NSString * overlayID
Definition: AGSGraphicsOverlay.h:130
NSMutableArray< AGSLabelDefinition * > * labelDefinitions
Definition: AGSGraphicsOverlay.h:163
AGSRenderer * renderer
Definition: AGSGraphicsOverlay.h:137
AGSColor * selectionColor
Definition: AGSGraphicsOverlay.h:148
NSMutableArray< AGSGraphic * > * graphics
Definition: AGSGraphicsOverlay.h:109
AGSGraphicsRenderingMode renderingMode
Definition: AGSGraphicsOverlay.h:142
BOOL labelsEnabled
Definition: AGSGraphicsOverlay.h:158
double maxScale
Definition: AGSGraphicsOverlay.h:114
NSArray< AGSGraphic * > * selectedGraphics()
An object that defines the text, appearance, and position of labels for features within a given scale...
Definition: AGSLabelDefinition.h:224
Layer properties that apply to 3D scenes.
Definition: AGSLayerSceneProperties.h:38
Definition: AGSObject.h:28
A popup definition.
Definition: AGSPopupDefinition.h:49
An abstract base class for renderers.
Definition: AGSRenderer.h:55
A source for popups.
Definition: AGSPopupSource.h:40