Defines the default color and context grid for display behind a map or scene surface. More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.0 |
Inherits: |
Properties
- color : color
- gridLineColor : color
- gridLineWidth : double
- gridSize : double
- visible : bool
Signals
Detailed Description
BackgroundGrid is the grid that displays behind a Map in a MapView, or a Surface in a SceneView. If there is no map or surface provided, an empty view will display with only the BackgroundGrid. The BackgroundGrid is not associated with the Grid that can be displayed over a MapView. The Map displays on top of the background grid or the optional Map.backgroundColor to determine what is displayed under transparent areas of the map.
An instance of this class can be used to set a default backdrop that a Map or Scene will display on top of.
Example:
Change the MapView's background grid (JavaScript):
var newGrid = ArcGISRuntimeEnvironment.createObject("BackgroundGrid"); newGrid.color = "white"; newGrid.gridLineColor = "black"; newGrid.gridLineSize = 5; newGrid.gridSize = 50; mapView.backgroundGrid = newGrid;
Property Documentation
color : color |
The fill color of the background. The default value is Silver
("#C0C0C0"
).
gridLineColor : color |
The color of the background grid lines. The default value is Black
("#FFFFFF"
).
The width (in DIPs) of the background grid lines. The default value is 1
.
This value must be greater than or equal to 0
. Setting the grid line width to 0
will make grid lines invisible.
Whether the grid should be visible in the background. The default value is true
.
If this value is true
, grid lines will display on top of the BackgroundGrid.color. If this value is false
, the BackgroundGrid.color will display without the grid lines.
This property was introduced in Esri.ArcGISRuntime 100.3.
Signal Documentation
Emitted when the color property of this BackgroundGrid changes.
Note: The corresponding handler is onColorChanged
.
Emitted when the gridLineColor property of this BackgroundGrid changes.
Note: The corresponding handler is onGridLineColorChanged
.
Emitted when the gridLineWidth property of this BackgroundGrid changes.
Note: The corresponding handler is onGridLineWidthChanged
.
Emitted when the gridSize property of this BackgroundGrid changes.
Note: The corresponding handler is onGridSizeChanged
.
Emitted when the visible property of this BackgroundGrid changes.
Note: The corresponding handler is onVisibleChanged
.
This signal was introduced in Esri.ArcGISRuntime 100.3.