ArcGIS Runtime SDK for iOS: AGSGraphic.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSGraphic.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 
19 #import <ArcGIS/AGSObject.h>
20 #import <ArcGIS/AGSGeoElement.h>
21 
22 @class AGSSymbol;
23 @class AGSGraphicsOverlay;
24 
52 
53 
54 #pragma mark -
55 #pragma mark initializers
56 
64 -(instancetype)initWithGeometry:(nullable AGSGeometry *)geometry symbol:(nullable AGSSymbol *)symbol attributes:(nullable NSDictionary<NSString*,id>*)attributes;
65 
70 +(instancetype)graphic;
71 
79 +(instancetype)graphicWithGeometry:(nullable AGSGeometry *)geometry symbol:(nullable AGSSymbol *)symbol attributes:(nullable NSDictionary<NSString*,id>*)attributes;
80 
81 #pragma mark -
82 #pragma mark properties
83 
87 @property (nonatomic, strong, readonly) NSMutableDictionary<NSString*,id> *attributes;
88 
92 @property (nullable, nonatomic, strong, readwrite) AGSGeometry *geometry;
93 
97 @property (nullable, nonatomic, weak, readonly) AGSGraphicsOverlay *graphicsOverlay;
98 
103 @property (nonatomic, assign, readwrite, getter=isSelected) BOOL selected;
104 
108 @property (nonatomic, assign, readwrite, getter=isVisible) BOOL visible;
109 
113 @property (nullable, nonatomic, strong, readwrite) AGSSymbol *symbol;
114 
121 @property (nonatomic, assign, readwrite) NSInteger zIndex;
122 
123 #pragma mark -
124 #pragma mark methods
125 
126 
127 @end
NSInteger zIndex
Definition: AGSGraphic.h:121
Defines common members for all specific types of geometry.
Definition: AGSGeometry.h:106
A symbol used to display a graphic or a feature.
Definition: AGSSymbol.h:51
AGSGraphicsOverlay * graphicsOverlay
Definition: AGSGraphic.h:97
BOOL visible
Definition: AGSGraphic.h:108
BOOL selected
Definition: AGSGraphic.h:103
NSMutableDictionary< NSString *, id > * attributes
Definition: AGSGraphic.h:87
Definition: AGSObject.h:21
An abstract representation of geographic entities on a map.
Definition: AGSGeoElement.h:37
instancetype graphic()
A graphic on top of a map.
Definition: AGSGraphic.h:51
An overlay to display graphics on the map.
Definition: AGSGraphicsOverlay.h:62