MgrsGrid

class MgrsGrid : Grid

A class that represents the display of the Military Grid Reference System (MGRS) on the map view. The military grid reference system 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.

To display the MGRS grid, create a MGRSGrid and set it as the grid property within the MapView.

MGRSGrid inherits from Grid and adds a property for the label unit to use.

Since

200.1.0

See also

Constructors

Link copied to clipboard
constructor()

Constructs an MGRS grid for displaying on a map view. The grid is supported in spatial references which are continuously pannable or some polar spatial references. You can check the SpatialReference.isPannable property is true on your spatial reference. Examples of continuously pannable spatial references include WGS84 (WKID 4326) and Web Mercator Auxiliary Sphere (WKID 102113, 102100, or 3857).

Properties

Link copied to clipboard

The units used for labeling the grid.

Inherited properties

Link copied to clipboard

The visibility of the grid.

Link copied to clipboard

The grid's text label offset from the edge of the map view in DIPS.

Link copied to clipboard

The positioning of the grid's labels.

Link copied to clipboard

The visibility of the grid's labels.

Link copied to clipboard

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. This method returns the finite number of different resolutions that are available for this grid.

Inherited functions

Link copied to clipboard
fun getLineSymbol(level: Int): Symbol

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

Link copied to clipboard
fun getTextSymbol(level: Int): Symbol

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

Link copied to clipboard
fun setLineSymbol(level: Int, lineSymbol: Symbol)

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

Link copied to clipboard
fun setTextSymbol(level: Int, textSymbol: Symbol)

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