ArcGIS Runtime SDK for iOS: AGSMGRSGrid Class Reference
ArcGIS Runtime SDK for iOS  100.15
AGSMGRSGrid Class Reference

Description

A grid representing Military Grid Reference System (MGRS) coordinate system.

Instances of this class represent a grid based on Military Grid Reference System (MGRS) for displaying on a map. MGRS is the geocoordinate standard used by various militaries for locating points on the earth. The MGRS grid is derived from the Universal Transverse Mercator (UTM) grid system and the universal polar stereographic (UPS) grid system, but uses a different labeling convention. MGRS is used for the entire earth.

The grid is supported in spatial references which are continuously pannable or some polar spatial references. (You can check AGSSpatialReference::isPannable on the spatial reference)

Examples of continuously pannable spatial references include WGS84 (WKID 4326) and Web Mercator Auxilliary Sphere (WKID 102113, 102100, or 3857).

The following polar spatial references are also supported:

  • North pole Azimuthal Equidistant (WKID 102016)
  • North pole gnomic (WKID 102034)
  • North pole lambert equal area (WKID 102017)
  • North pole orthographic (WKID 102035)
  • North pole stereographic (WKID 102018)
  • NSIDE EASE North (WKID 3408)
  • NSIDC Sea Ice polar stereographic north (WKID 3411)
  • WGS 1984 NSIDC Sea Ice Polar Stereographic North (WKID 3413)
  • UPS North (WKID 32661)
  • South pole Azimuthal Equidistant (WKID 102019)
  • South pole gnomic (WKID 102036)
  • South pole lambert equal area (WKID 102020)
  • South pole orthographic (WKID 102037)
  • South pole stereographic (WKID 102021)
  • NSIDE EASE South (WKID 3409)
  • NSIDC Sea Ice polar stereographic South (WKID 3412)
  • UPS South (WKID 32761)
  • WGS1984 Antarctic polar stereographic (WKID 3031)
Inheritance diagram for AGSMGRSGrid:
AGSGrid AGSObject

Instance Methods

(AGSSymbol *) - lineSymbolForLevel:
 
(void) - setLineSymbol:forLevel:
 
(void) - setTextSymbol:forLevel:
 
(AGSSymbol *) - textSymbolForLevel:
 

Class Methods

(instancetype) + MGRSGrid
 

Properties

double labelOffset
 
AGSGridLabelPosition labelPosition
 
AGSMGRSGridLabelUnit labelUnit
 
BOOL labelVisibility
 
NSInteger levelCount
 
BOOL visible
 

Method Documentation

◆ lineSymbolForLevel:

- (AGSSymbol*) lineSymbolForLevel: (NSInteger)  level

Returns the line symbol used for the grid lines at the given resolution level.

Parameters
levelspecifiying the resolution level for which the symbol is desired.
Returns
The symbol at the specified resolution level.
Since
100

◆ MGRSGrid

+ (instancetype) MGRSGrid

Creates a MGRS grid.

Returns
A new MGRS grid.
Since
100

◆ setLineSymbol:forLevel:

- (void) setLineSymbol: (AGSSymbol *)  symbol
forLevel: (NSInteger)  level 

Set the line symbol used for the grid lines at the given resolution level.

Parameters
symbolto be used for grid lines
levelThe level specifiying the resolution level for which the symbol is desired.
Since
100

◆ setTextSymbol:forLevel:

- (void) setTextSymbol: (AGSSymbol *)  symbol
forLevel: (NSInteger)  level 

Set the text symbol used for the grid text labels at the given resolution level.

Parameters
symbolto be used for grid text label
levelspecifiying the resolution level for which the symbol is desired
Since
100

◆ textSymbolForLevel:

- (AGSSymbol*) textSymbolForLevel: (NSInteger)  level

Returns the text symbol used for the grid text labels at the given resolution level.

Parameters
levelspecifiying the resolution level for which the symbol is desired.
Returns
The symbol at the specified resolution level.
Since
100

Property Documentation

◆ labelOffset

- (double) labelOffset
readwritenonatomicassigninherited

Specifies the grid's text label offset (in screen points) from the edge of the map view.

Since
100

◆ labelPosition

- (AGSGridLabelPosition) labelPosition
readwritenonatomicassigninherited

Specifies the positioning of the grid's text labels.

Since
100

◆ labelUnit

- (AGSMGRSGridLabelUnit) labelUnit
readwritenonatomicassign

Specifies the units used in grid labels.

Since
100

◆ labelVisibility

- (BOOL) labelVisibility
readwritenonatomicassigninherited

Specifies whether the grid's text labels are visible or not.

Since
100

◆ levelCount

- (NSInteger) levelCount
readnonatomicassigninherited

Returns the number of levels of resolution supported by the grid. The line and label style can be set for each of these resolution levels. The resolution of the displayed grid may adapt as the scale of the displayed map changes.

Since
100

◆ visible

- (BOOL) visible
readwritenonatomicassigninherited

Specifies whether the grid is visible or not.

Since
100