UsngGrid

class UsngGrid : Grid

A class that represents the display of the United States National Grid (USNG) on the map view. The United States National Grid (USNG) is a point reference system of grid references commonly used in the United States. It provides a nationally consistent language of location in a user friendly format. It is similar in design to the national grid reference systems used throughout other nations. The USNG was developed by the Federal Geographic Data Committee.

To display the USNG grid, create a USNGGrid and set it as the grid property within the MapView.

USNGGrid 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 a USNG 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.