new GoHexGrid(options)
WebGL layer for rendering vector data using WebGL.
| Name | Type | Description |
|---|---|---|
options |
Object |
Options for the WebGL layer. |
Extends
- Layer
Methods
-
canFilter(){boolean}
Layers/GoHexGrid/index.ts, line 397 -
Checks if filtering can be applied.
Returns:
Type Description boolean - Always returns true in this implementation.
-
clearOriginDataLayer(){void}
Layers/GoHexGrid/index.ts, line 228 -
Clears the data origin layer.
Returns:
Type Description void -
divideDataByResolution(){void}
Layers/GoHexGrid/index.ts, line 361 -
Divides data by resolution and stores features in appropriate vector sources.
Returns:
Type Description void -
get(){void}
Layers/GoHexGrid/index.ts, line 413 -
Handles the case where the requested method is not implemented.
Returns:
Type Description void -
getData(id, options){void}
Layers/GoHexGrid/index.ts, line 296 -
Registers a click event on the map to fetch data.
Name Type Description idstring The unique ID for the click event.
optionsGetDataOptions Options for data retrieval.
Returns:
Type Description void -
getFeatureByHexagonId(hexagonId){Feature|null}
Layers/GoHexGrid/index.ts, line 258 -
Gets the feature by its hexagon ID.
Name Type Description hexagonIdstring The hexagon ID.
Returns:
Type Description Feature | null - The feature associated with the hexagon ID, or null if not found.
-
getLayerDescription(){string}
Layers/GoHexGrid/index.ts, line 425 -
Gets a description of the layer.
Returns:
Type Description string - A description of the layer, "HexGrid Layer".
-
getOriginDataLayer(){VectorLayer.<VectorSource>}
Layers/GoHexGrid/index.ts, line 220 -
Gets the data origin layer.
Returns:
Type Description VectorLayer.<VectorSource> - The data origin layer.
-
getResolutionValueFromRanges(resolution, ranges){string|null}
Layers/GoHexGrid/index.ts, line 348 -
Gets the resolution value based on the zoom level and predefined ranges.
Name Type Description resolutionnumber The current resolution (zoom level).
rangesArray.<Object> The array of resolution ranges.
Returns:
Type Description string | null - The resolution value if found, otherwise null.
-
initLayer(){CancelablePromise.<GoHexGridLayer>}
Layers/GoHexGrid/index.ts, line 83 -
Initializes the hex grid layer with the given options and map.
Returns:
Type Description CancelablePromise.<GoHexGridLayer> - A promise that resolves with the initialized layer.
-
obtenerFeaturesDesdeString(identificadoresStr, original){Array.<Feature>}
Layers/GoHexGrid/index.ts, line 270 -
Obtains features from a comma-separated string of identifiers.
Name Type Description identificadoresStrstring The string of identifiers.
originalstring The original identifier to exclude.
Returns:
Type Description Array.<Feature> - An array of features that match the identifiers, excluding the original.
-
showResolutionVectorSource(resolutionValue){void}
Layers/GoHexGrid/index.ts, line 381 -
Shows features corresponding to the given resolution value.
Name Type Description resolutionValuestring The resolution value to display.
Returns:
Type Description void -
type(){string}
Layers/GoHexGrid/index.ts, line 405 -
Gets the type of the layer.
Returns:
Type Description string - The type of the layer, "GOHexGrid".
-
unGetData(id){void}
Layers/GoHexGrid/index.ts, line 334 -
Unregisters the click event for data retrieval.
Name Type Description idstring The unique ID for the click event.
Returns:
Type Description void
