new WebGlSourceGeoJSON()
Layers/GoWebGlLayer/classes/WebGlSourceGeoJSON/index.ts, line 8
Class to manage a GeoJSON data source in a WebGL layer.
Methods
-
addFeatures(data, clear)
Layers/GoWebGlLayer/classes/WebGlSourceGeoJSON/index.ts, line 68 -
Adds features to the data source.
Name Type Default Description dataObject The GeoJSON data to add.
clearboolean false optional Indicates whether to clear existing features before adding new ones.
-
getGoWebGlLayer(){GoWebGlLayer|GoHexGrid|undefined}
Layers/GoWebGlLayer/classes/WebGlSourceGeoJSON/index.ts, line 59 -
Retrieves the associated WebGL layer.
Returns:
Type Description GoWebGlLayer | GoHexGrid | undefined - The WebGL layer.
-
getSource(){Vector|undefined}
Layers/GoWebGlLayer/classes/WebGlSourceGeoJSON/index.ts, line 51 -
Retrieves the GeoJSON data source.
Returns:
Type Description Vector | undefined - The GeoJSON data source.
