Class: GoWaterLeakRemoteSensing

GoWaterLeakRemoteSensing

Class representing the Water Leak Remote Sensing layer.

  • This class is responsible for creating, managing, and displaying processed raster data (specifically water leak detection imagery) on the map. It handles the synchronization between the map layer and the associated UI controls.

new GoWaterLeakRemoteSensing(stagingMap, layerOpts)

Layers/GoWaterLeakRemoteSensing/index.ts, line 57

Creates an instance of the GoWaterLeakRemoteSensing layer. Initializes the layer structure and triggers the loading process if backend features are enabled.

Name Type Description
stagingMap GOStagingMap

The staging map instance where the layer will be added.

layerOpts layerOptions

Configuration options for the layer (ID, opacity, etc.).

Extends

  • undefined

Methods

canFilter(){boolean}

Layers/GoWaterLeakRemoteSensing/index.ts, line 260

Determines if the layer supports filtering operations. Currently, this feature is not implemented for this layer type.

Throws:

Always throws an error indicating the method is not implemented.

Type
Error
Returns:
Type Description
boolean Not applicable.

getApiBaseUrl(){string}

Layers/GoWaterLeakRemoteSensing/index.ts, line 199

Retrieves the base URL used for the Remote Sensing API calls.

Returns:
Type Description
string The constructed API base URL.

getLayer(){VectorLayer.<VectorSource>}

Layers/GoWaterLeakRemoteSensing/index.ts, line 235

Retrieves the underlying OpenLayers layer instance.

Returns:
Type Description
VectorLayer.<VectorSource> The OpenLayers layer object.

getUI(){UIWLMainContainer}

Layers/GoWaterLeakRemoteSensing/index.ts, line 208

Retrieves the main UI container instance associated with this layer.

Returns:
Type Description
UIWLMainContainer The UI container object.

getVisibility(){boolean}

Layers/GoWaterLeakRemoteSensing/index.ts, line 226

Checks if the layer is currently visible on the map.

Returns:
Type Description
boolean true if the layer is visible, false otherwise.

asyncloadImageForDate(date){Promise.<void>}

Layers/GoWaterLeakRemoteSensing/index.ts, line 165

Asynchronously fetches and updates the layer image for a specific date. This method retrieves the image blob, converts it to a Data URL, and updates the raster source.

Name Type Description
date string

The date string (e.g., 'YYYY-MM-DD') for which to load the image.

Returns:
Type Description
Promise.<void> A promise that resolves when the image source has been updated.

setMinMaxResolutions(layerOpts)

Layers/GoWaterLeakRemoteSensing/index.ts, line 245

Configures the minimum and maximum resolution constraints for the layer based on the provided options. This controls at which zoom levels the layer is visible.

Name Type Description
layerOpts layerOptions

Layer options containing minResolution and maxResolution values.

setVisibility(visibility)

Layers/GoWaterLeakRemoteSensing/index.ts, line 217

Sets the visibility status of the layer on the map.

Name Type Description
visibility boolean

true to make the layer visible, false to hide it.

type(){GOLayerType}

Layers/GoWaterLeakRemoteSensing/index.ts, line 98

Retrieves the unique type identifier for this layer.

Returns:
Type Description
GOLayerType The specific GOLayerType enum value for Remote Sensing.