Class: WebGlSourceGeoserver

WebGlSourceGeoserver

new WebGlSourceGeoserver(goWebGlLayer)

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

Creates an instance of WebGlSourceGeoserver.

Name Type Description
goWebGlLayer GoWebGlLayer

The WebGL layer instance.

Methods

getGoWebGlLayer(){GoWebGlLayer|GoHexGrid|undefined}

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

Gets the associated GoWebGlLayer instance.

Returns:
Type Description
GoWebGlLayer | GoHexGrid | undefined The WebGL layer instance.

getSource(){Vector}

Layers/GoWebGlLayer/classes/WebGlSourceGeoserver/index.ts, line 59

Gets the vector source for the Geoserver layer.

Returns:
Type Description
Vector The vector source instance.

asyncloader(extent){Promise.<any>}

Layers/GoWebGlLayer/classes/WebGlSourceGeoserver/index.ts, line 81

Loader function for fetching features from the Geoserver.

This method constructs the URL for the WFS request, makes the request, and processes the response to add features to the vector source.

Name Type Description
extent Extent

The extent of the map view.

Returns:
Type Description
Promise.<any> A promise that resolves with the response data.