ArcGIS Runtime SDK for iOS: AGSGrid.h Source File
ArcGIS Runtime SDK for iOS  100.11
AGSGrid.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/AGSObject.h>
29 
30 
31 
39 typedef NS_ENUM(NSInteger, AGSGridLabelPosition) {
47 };
48 
53 typedef {
54  AGSGridTypeLatitudeLongitudeGrid = 0,
55  AGSGridTypeUTM = 1,
56  AGSGridTypeMGRS = 2,
57  AGSGridTypeUSNG = 3,
58  AGSGridTypeUnknown = -1
59 };
60 
61 @class AGSSymbol;
62 
69 @interface AGSGrid : AGSObject
70 
71 #pragma mark -
72 #pragma mark initializers
73 
74 #pragma mark -
75 #pragma mark properties
76 
80 @property (nonatomic, assign, readwrite, getter=isVisible) BOOL visible;
81 
85 @property (nonatomic, assign, readwrite) double labelOffset;
86 
90 @property (nonatomic, assign, readwrite) AGSGridLabelPosition labelPosition;
91 
95 @property (nonatomic, assign, readwrite) BOOL labelVisibility;
96 
101 @property (nonatomic, assign, readonly) NSInteger levelCount;
102 
103 #pragma mark -
104 #pragma mark methods
105 
111 -(AGSSymbol*)lineSymbolForLevel:(NSInteger)level;
112 
118 -(void)setLineSymbol:(AGSSymbol*)symbol forLevel:(NSInteger)level;
119 
125 -(AGSSymbol*)textSymbolForLevel:(NSInteger)level;
126 
132 -(void)setTextSymbol:(AGSSymbol*)symbol forLevel:(NSInteger)level;
133 
134 @end
135 
136 
AGSGridLabelPosition
Definition: AGSGrid.h:39
@ AGSGridLabelPositionTopLeft
Definition: AGSGrid.h:43
@ AGSGridLabelPositionCenter
Definition: AGSGrid.h:45
@ AGSGridLabelPositionAllSides
Definition: AGSGrid.h:46
@ AGSGridLabelPositionBottomLeft
Definition: AGSGrid.h:41
@ AGSGridLabelPositionBottomRight
Definition: AGSGrid.h:42
@ AGSGridLabelPositionTopRight
Definition: AGSGrid.h:44
@ AGSGridLabelPositionGeographic
Definition: AGSGrid.h:40
A base class for displaying coordinate system grids on a map.
Definition: AGSGrid.h:70
BOOL visible
Definition: AGSGrid.h:80
double labelOffset
Definition: AGSGrid.h:85
NSInteger levelCount
Definition: AGSGrid.h:101
BOOL labelVisibility
Definition: AGSGrid.h:95
AGSGridLabelPosition labelPosition
Definition: AGSGrid.h:90
Definition: AGSObject.h:28
A symbol used to display a graphic or a feature.
Definition: AGSSymbol.h:91