Represents options to display a grid on top of a map. More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.0 |
Inherits: | |
Inherited By: |
Properties
- gridType : Enums.GridType
- labelOffset : double
- labelPosition : Enums.GridLabelPosition
- labelsVisible : bool
- levelCount : int
- visible : bool
Signals
Methods
- Symbol lineSymbol(int level)
- void setLineSymbol(int level, Symbol lineSymbol)
- void setTextSymbol(int level, Symbol textSymbol)
- Symbol textSymbol(int level)
Detailed Description
Supported grid types are:
- LatitudeLongitudeGrid - Latitude and longitude (graticules)
- MGRSGrid - Military Grid Reference System (MGRS)
- USNGGrid - United States National Grid (USNG)
- UTMGrid - Universal Transverse Mercator (UTM)
This class allows customization of the grid by setting:
- Whether to show the grid
- Whether to show labels
- Label offsets
- Label position
Each grid has a number of resolution levels. Each level is displayed at a predetermined scale range that you cannot change. For each level of the grid, you can specify the symbols used for text and lines. The number of levels may be determined by the levelCount property. Integers used specify a level increment starting from zero.
Property Documentation
Returns the type of this grid (read-only).
See also Enums.GridType.
The grid text label offset device-independent pixels (DIPs) from the edge of the map view.
The positioning option used for all grid text labels.
See also Enums.GridLabelPosition.
Signal Documentation
Emitted when the labelOffset property changes.
Note: The corresponding handler is onLabelOffsetChanged
.
Emitted when the labelPosition property changes.
Note: The corresponding handler is onLabelPositionChanged
.
Emitted when the labelsVisible property changes.
Note: The corresponding handler is onLabelsVisibleChanged
.
Emitted when the visible property changes.
Note: The corresponding handler is onVisibleChanged
.
Method Documentation
Symbol lineSymbol(int level) |
Returns the line symbol used for the grid lines at the given resolution level.
See also setLineSymbol().
void setLineSymbol(int level, Symbol lineSymbol) |
Sets the line symbol used for the grid lines at the given resolution level to lineSymbol.
See also lineSymbol().
void setTextSymbol(int level, Symbol textSymbol) |
Sets the text symbol used for the grid labels at the given resolution level to textSymbol.
See also textSymbol().
Symbol textSymbol(int level) |
Returns the text symbol used for the grid labels at the given resolution level.
See also setTextSymbol().