Class: WebGlSourceBase

WebGlSourceBase

new WebGlSourceBase()

Layers/GoWebGlLayer/classes/WebGlSourceBase/index.ts, line 8

Base class to manage WebGL data sources.

Methods

async_init(){Promise.<void>}

Layers/GoWebGlLayer/classes/WebGlSourceBase/index.ts, line 37

Initializes the appropriate data source based on the layer type.

Returns:
Type Description
Promise.<void>
  • Resolves when the data source has been initialized.

getGoWebGlLayer(){GoWebGlLayer}

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

Retrieves the associated WebGL layer.

Returns:
Type Description
GoWebGlLayer
  • The WebGL layer.

getSource(){VectorSource.<FeatureLike>|undefined}

Layers/GoWebGlLayer/classes/WebGlSourceBase/index.ts, line 52

Retrieves the WebGL data source.

Returns:
Type Description
VectorSource.<FeatureLike> | undefined
  • The data source or null if it has not been created.

getSourceClass(){WebGlSourceGeoJSON|WebGlSourceGeoserver|undefined}

Layers/GoWebGlLayer/classes/WebGlSourceBase/index.ts, line 60

Retrieves the associated data source class.

Returns:
Type Description
WebGlSourceGeoJSON | WebGlSourceGeoserver | undefined
  • The data source class or null if it has not been created.

WebGlSourceBase

new WebGlSourceBase(goWebGlLayer)

Layers/GoWebGlLayer/classes/WebGlSourceBase/index.ts, line 22

Creates an instance of WebGlSourceBase.

Name Type Description
goWebGlLayer GoWebGlLayer | GoHexGrid

The associated WebGL layer.

Methods

async_init(){Promise.<void>}

Layers/GoWebGlLayer/classes/WebGlSourceBase/index.ts, line 37

Initializes the appropriate data source based on the layer type.

Returns:
Type Description
Promise.<void>
  • Resolves when the data source has been initialized.

getGoWebGlLayer(){GoWebGlLayer}

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

Retrieves the associated WebGL layer.

Returns:
Type Description
GoWebGlLayer
  • The WebGL layer.

getSource(){VectorSource.<FeatureLike>|undefined}

Layers/GoWebGlLayer/classes/WebGlSourceBase/index.ts, line 52

Retrieves the WebGL data source.

Returns:
Type Description
VectorSource.<FeatureLike> | undefined
  • The data source or null if it has not been created.

getSourceClass(){WebGlSourceGeoJSON|WebGlSourceGeoserver|undefined}

Layers/GoWebGlLayer/classes/WebGlSourceBase/index.ts, line 60

Retrieves the associated data source class.

Returns:
Type Description
WebGlSourceGeoJSON | WebGlSourceGeoserver | undefined
  • The data source class or null if it has not been created.