Class: WebGlSourceGeoJSON

WebGlSourceGeoJSON

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
data Object

The GeoJSON data to add.

clear boolean 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.

WebGlSourceGeoJSON

new WebGlSourceGeoJSON(goWebGlLayer)

Layers/GoWebGlLayer/classes/WebGlSourceGeoJSON/index.ts, line 24

Creates an instance of WebGlSourceGeoJSON.

Name Type Description
goWebGlLayer GoWebGlLayer

The associated WebGL layer.

Methods

addFeatures(data, clear)

Layers/GoWebGlLayer/classes/WebGlSourceGeoJSON/index.ts, line 68

Adds features to the data source.

Name Type Default Description
data Object

The GeoJSON data to add.

clear boolean 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.