new GoHexgridTool(hexCase, resize)
Creates a new GoHexgridTool instance.
| Name | Type | Description |
|---|---|---|
hexCase |
module:types~HexConditions |
Case of hexgrid selected |
resize |
boolean |
Resize hexgrid. Default: true |
Properties:
| Name | Type | Description |
|---|---|---|
layerHexgrid |
VectorLayer | The OpenLayers vector layer object. |
idLayer |
string | The ID of the layer that the hexagonal grid will be added to. |
field |
string | null | The field to use for color coding the hexagonal grid. |
resolutionDefault |
boolean | Flag to use default resolution for hexagons. |
src |
string | The source object that the hexagonal grid layer uses. |
resolution |
number | The resolution of the hexagonal grid. |
contador |
number | Counter to keep track of hexagonal grid layer creation. |
hexGridSize |
Array.<number> | The size of the hexagons in the grid. |
hexGridResolution |
Array.<number> | The resolution of the hexagons in the grid. |
hexbinSource |
HexBin | The source for the hexbin layer. |
colorHexGridThreshold |
Array.<number> | The color threshold for the hexagonal grid. |
colorHexGrid |
Array.<Array.<number>> | The color of the hexagons in the grid. |
hexSize |
number | The size of the hexagons in the grid. |
Classes
Methods
-
changeHexGridSize(size){void}
Interactions/Analysis/interact/DensityTools/GoHexgridTool.ts, line 219 -
Change the size for hexagonal distribution
Name Type Description sizenumber Size for hexagonal distribution
Returns:
Type Description void Return nothing -
changeResolutionHexGrid(resolutionOwn){void}
Interactions/Analysis/interact/DensityTools/GoHexgridTool.ts, line 257 -
Change the resolution for hexagonal distribution
Name Type Description resolutionOwnmodule:types~hexGridResolution Resolution for hexagonal distribution
Returns:
Type Description void Return nothing -
changeStyleHexGrid(styleOwn){void}
Interactions/Analysis/interact/DensityTools/GoHexgridTool.ts, line 246 -
Change the color for hexagonal distribution
Name Type Description styleOwnhexGridColor Color for hexagonal distribution
Returns:
Type Description void Return nothing -
changeUpdateResolutionZoom(resolution){void}
Interactions/Analysis/interact/DensityTools/GoHexgridTool.ts, line 267 -
Update the zoom resolution for hexagonal distribution
Name Type Description resolutionboolean Resolution for hexagonal distribution
Returns:
Type Description void Return nothing -
getHexGridSize(){number}
Interactions/Analysis/interact/DensityTools/GoHexgridTool.ts, line 228 -
Get the size from hexagonal distribution
Returns:
Type Description number Returns the size of the hexagonal distribution -
getHexGridStyle(){Array.<number>}
Interactions/Analysis/interact/DensityTools/GoHexgridTool.ts, line 236 -
Get style Threshold and Color from hexgrid
Returns:
Type Description Array.<number> Returns the style of the hexgrid -
getLayer(){module:types~VectorLayer}
Interactions/Analysis/interact/DensityTools/GoHexgridTool.ts, line 176 -
Get Hexgrid Layer
Returns:
Type Description module:types~VectorLayer Return Vector Layer -
getLayerName(){string}
Interactions/Analysis/interact/DensityTools/GoHexgridTool.ts, line 184 -
Get Hexgrid Layer name
Returns:
Type Description string Return the id of the layer -
getLayerType(){string}
Interactions/Analysis/interact/DensityTools/GoHexgridTool.ts, line 192 -
Get Hexgrid Layer type
Returns:
Type Description string Return type of the layer -
getUpdateResolutionZoom(){boolean}
Interactions/Analysis/interact/DensityTools/GoHexgridTool.ts, line 275 -
Get the updated resolution zoom for hexagonal distribution
Returns:
Type Description boolean Return if the resolution is updated -
setMaxResolution(maxResolution){void}
Interactions/Analysis/interact/DensityTools/GoHexgridTool.ts, line 201 -
Set max resolution for layer
Name Type Description maxResolutionnumber Max resolution for visualization
Returns:
Type Description void Return nothing -
setMinResolution(minResolution){void}
Interactions/Analysis/interact/DensityTools/GoHexgridTool.ts, line 210 -
Set min resolution for layer
Name Type Description minResolutionnumber Min resolution for visualization
Returns:
Type Description void Return nothing
