ArcGIS Runtime SDK for iOS: AGSGraphic.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSGraphic.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 
25 #import <Foundation/Foundation.h>
26 #import <ArcGIS/AGSObject.h>
27 #import <ArcGIS/AGSGeoElement.h>
28 
29 @class AGSSymbol;
30 @class AGSGraphicsOverlay;
31 
59 
60 
61 #pragma mark -
62 #pragma mark initializers
63 
70 -(instancetype)initWithGeometry:(nullable AGSGeometry *)geometry symbol:(nullable AGSSymbol *)symbol attributes:(nullable NSDictionary<NSString*,id>*)attributes;
71 
76 +(instancetype)graphic;
77 
85 +(instancetype)graphicWithGeometry:(nullable AGSGeometry *)geometry symbol:(nullable AGSSymbol *)symbol attributes:(nullable NSDictionary<NSString*,id>*)attributes;
86 
87 #pragma mark -
88 #pragma mark properties
89 
93 @property (nonatomic, strong, readonly) NSMutableDictionary<NSString*,id> *attributes;
94 
98 @property (nullable, nonatomic, strong, readwrite) AGSGeometry *geometry;
99 
103 @property (nullable, nonatomic, weak, readonly) AGSGraphicsOverlay *graphicsOverlay;
104 
109 @property (nonatomic, assign, readwrite, getter=isSelected) BOOL selected;
110 
114 @property (nonatomic, assign, readwrite, getter=isVisible) BOOL visible;
115 
119 @property (nullable, nonatomic, strong, readwrite) AGSSymbol *symbol;
120 
133 @property (nonatomic, assign, readwrite) NSInteger zIndex;
134 
135 #pragma mark -
136 #pragma mark methods
137 
138 
139 @end
Base class for all classes that represent geometric shapes.
Definition: AGSGeometry.h:121
A graphic on top of a map.
Definition: AGSGraphic.h:58
NSMutableDictionary< NSString *, id > * attributes
Definition: AGSGraphic.h:93
NSInteger zIndex
Definition: AGSGraphic.h:133
BOOL selected
Definition: AGSGraphic.h:109
AGSGraphicsOverlay * graphicsOverlay
Definition: AGSGraphic.h:103
AGSGeometry * geometry
Definition: AGSGraphic.h:98
instancetype graphic()
AGSSymbol * symbol
Definition: AGSGraphic.h:119
BOOL visible
Definition: AGSGraphic.h:114
An overlay to display graphics on the map.
Definition: AGSGraphicsOverlay.h:82
Definition: AGSObject.h:28
A symbol used to display a graphic or a feature.
Definition: AGSSymbol.h:91
An abstract representation of geographic entities on a map.
Definition: AGSGeoElement.h:43