LatitudeLongitudeGrid

A grid consisting of east-west lines of latitude and north-south lines of longitude. This class represents graticules--lines showing parallels of latitude and meridians of longitude for the earth.

The position of the graticules are based on the WGS84 ellipsoid, irrespective of the spatial reference used by the map view.

To display graticules, create a LatitudeLongitudeGrid and set it as the grid property within the MapView.

LatitudeLongitudeGrid extends Grid, adding the label unit property.

Since

200.1.0

See also

Constructors

Link copied to clipboard
constructor()

Constructs a grid consisting of east-west lines of latitude and north-south lines of longitude (also known as graticules). 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 format 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.