Class: GoIOTLayer

GoIOTLayer

This class is used for create vector layers.

new GoIOTLayer(layerOpts, topicId)

Layers/GoIOTLayer/index.ts, line 30
Name Type Description
layerOpts module:types~layerOptions

The layer options.

topicId string

The topic id.

Extends

Methods

inherited addFilterNoCQL(filter){void}

Layers/GoStyledLayer/index.ts, line 194

Adds a filter to the layer without using CQL.

Name Type Description
filter types.filterNoCQL

The filter to add.

Returns:
Type Description
void

inherited addInteractions(interactions){GoLayerInteractions}

Layers/GoLayer/index.ts, line 184

Adds interactions to the layer.

Name Type Description
interactions LayerInteractions

The interactions to be added to the layer.

Returns:
Type Description
GoLayerInteractions The interactions object associated with the layer.

inherited addStyleFunction(styleFunction){void}

Layers/GoStyledLayer/index.ts, line 233

Adds a style function to the layer.

Name Type Description
styleFunction types.styleFunction

The style function to add.

Returns:
Type Description
void

inherited changeLayerOpacity(opacity){void}

Layers/GoLayer/index.ts, line 167

Changes the opacity of the layer.

Name Type Description
opacity number

The new opacity value (0-100).

Returns:
Type Description
void

inherited changeStyleConditional(style, clear){void}

Layers/GoStyledLayer/index.ts, line 133

Changes the style of the layer based on style conditions.

Name Type Default Description
style types.styleGeojson | types.styleSVG

The style information.

clear boolean false optional

Whether to clear existing styles.

Returns:
Type Description
void

inherited changeStyleFromJSON(style){Style}

Layers/GoStyledLayer/index.ts, line 147

This function allow to change the style of the layer from a JSON

Name Type Description
style types.styleGeojson

Style Styles to apply over the layer

Returns:
Type Description
Style
  • Return Style

inherited clasificationEnumTypeCQLGeometry(f, field, type, value){string}

Layers/GoStyledLayer/index.ts, line 252

This function allow to clasify the CQL filters of the type Geometry

Name Type Description
f any

The feature

field string

The field of the condition

type string

The type of the condition

value Array.<any>

The value of the condition

Returns:
Type Description
string Return the CQL filter type Geometry.

inherited createStyleFunction(mapUnits){function}

Layers/GoStyledLayer/index.ts, line 323

This function allow to create the styles of the layer

Name Type Description
mapUnits boolean

The units of the map

Returns:
Type Description
function A function that can be set as an OpenLayers style function.

inherited emit(eventName, args){void}

Layers/GoLayer/index.ts, line 227

Emits an event to all registered listeners for the specified event.

Name Type Description
eventName string

The name of the event to emit.

args Array.<any> repeatable

Additional arguments to pass to the event listeners.

Returns:
Type Description
void

enrichFeatures(layer){void}

Layers/GoIOTLayer/index.ts, line 308

Enriches the features in the layer by updating their properties with additional data from the Nexus service.

Name Type Description
layer module:Layers/GoIOTLayer/index.ts~GoIOTLayer

The layer instance to enrich features for.

Returns:
Type Description
void This method does not return a value. It updates the features' properties directly.

exportGeoJsonFormatFeatures(){string|null}

Layers/GoIOTLayer/index.ts, line 143

Exports features from the layer to GeoJSON format.

Returns:
Type Description
string | null GeoJSON string if features are present, otherwise null.

filterIOT(typeToFind, features){Object}

Layers/GoIOTLayer/index.ts, line 501

Filters an array of features to find those that match a specific type based on the IOT label configuration.

Name Type Description
typeToFind string

The type of IOT feature to find (e.g., "SIGNAL" or "VIEW").

features Object

An array of OpenLayers features to filter.

Returns:
Type Description
Object An array of features that match the specified IOT type. If the configuration is not valid, it logs an error and returns an empty array.

inherited fixIconPaths(styleName, origin){void}

Layers/GoStyledLayer/index.ts, line 339

This function allow to fix the paths of the icons

Name Type Description
styleName string

The name of the style

origin string

The origin of the icon

Returns:
Type Description
void Return nothing

inherited getAlias(){string}

Layers/GoLayer/index.ts, line 416

Gets the alias of the layer.

Returns:
Type Description
string The alias of the layer.

inherited getEventHandlers(eventName){Array.<function()>}

Layers/GoLayer/index.ts, line 246

Gets the event handlers for the specified event.

Name Type Description
eventName string

The name of the event to retrieve handlers for.

Returns:
Type Description
Array.<function()> An array of event handler functions.

inherited getExtent(){Array.<number>|null}

Layers/GoLayer/index.ts, line 547

Gets the geographical extent of the layer.

Returns:
Type Description
Array.<number> | null The extent as an array of numbers or null if the extent is not defined.

getFeatureType(){string}

Layers/GoIOTLayer/index.ts, line 698

Retrieves the feature type used by the layer.

Returns:
Type Description
string The feature type of the layer.

getFilter(){string}

Layers/GoIOTLayer/index.ts, line 678

Retrieves and formats the filter for the layer if it exists.

Returns:
Type Description
string The formatted filter string, or an empty string if no filter is set.

asyncgetGeometryName(){Promise.<string>}

Layers/GoIOTLayer/index.ts, line 642

Asynchronously retrieves the name of the geometry from the layer's properties.

Returns:
Type Description
Promise.<string> A promise that resolves to the name of the geometry.

getGeometryType(){GOGeometryType}

Layers/GoIOTLayer/index.ts, line 689

Retrieves the geometry type used by the layer.

Returns:
Type Description
GOGeometryType The geometry type of the layer (e.g., POINT, LINE, POLYGON).

inherited getId(){string}

Layers/GoLayer/index.ts, line 424

Gets the unique identifier of the layer.

Returns:
Type Description
string The layer ID.

inherited getInitialStyle(keyStyle){Style}

Layers/GoStyledLayer/index.ts, line 546

Retrieves the initial style based on the provided key style.

Name Type Description
keyStyle string

The key to determine the type of style to retrieve ("json" or "svg").

Throws:

Throws an error if the keyStyle is not recognized or if an error occurs while processing the style.

Type
Error
Returns:
Type Description
Style The initial style based on the key style provided.

inherited getLabelField(){string}

Layers/GoStyledLayer/index.ts, line 380

Retrieves the label field from the style's text symbolizer.

Throws:

Throws an error if the text symbolizer is not found or if label type is not "expression".

Type
Error
Returns:
Type Description
string The label field value.

getLayer(){VectorImageLayer.<VectorSource.<Feature.<Geometry>>>}

Layers/GoIOTLayer/index.ts, line 624

Retrieves the vector layer associated with this instance.

Returns:
Type Description
VectorImageLayer.<VectorSource.<Feature.<Geometry>>> The vector layer.

getLayerDescription(){Promise.<(string|undefined)>}

Layers/GoIOTLayer/index.ts, line 708

Retrieves a description of the layer by making an HTTP request to fetch feature type details.

Returns:
Type Description
Promise.<(string|undefined)> A promise that resolves to the geometry field name if successful, or undefined if an error occurs.

getLayerName(){string}

Layers/GoIOTLayer/index.ts, line 633

Retrieves the name of the layer.

Returns:
Type Description
string The name of the layer.

inherited getLayerOpts(){types.layerOptions}

Layers/GoLayer/index.ts, line 408

Gets the options used to configure the layer.

Returns:
Type Description
types.layerOptions The layer configuration options.

getLayerProjection(){string}

Layers/GoIOTLayer/index.ts, line 651

Retrieves the projection code of the layer.

Returns:
Type Description
string The projection code of the layer.

inherited getLayerStyle(){GoStyle}

Layers/GoLayer/index.ts, line 575

Gets the style associated with the layer.

Returns:
Type Description
GoStyle The style of the layer.

inherited getLayerType(){string}

Layers/GoLayer/index.ts, line 448

Gets the type of the layer.

Returns:
Type Description
string The layer type.

inherited getLayerUrl()

Layers/GoLayer/index.ts, line 107

get layerUrl

inherited getMapStyle(idStyle){Map}

Layers/GoStyledLayer/index.ts, line 465

Retrieves the map style associated with the specified style ID. If no ID is provided, retrieves the initial style.

Name Type Description
idStyle string optional

The ID of the style to retrieve.

Returns:
Type Description
Map The map of styles associated with the specified ID or initial style.

inherited getMaxResolution(){number}

Layers/GoLayer/index.ts, line 464

Gets the maximum resolution at which the layer is visible.

Returns:
Type Description
number The maximum resolution.

inherited getMinResolution(){number}

Layers/GoLayer/index.ts, line 472

Gets the minimum resolution at which the layer is visible.

Returns:
Type Description
number The minimum resolution.

getNexusTagViews(dataViews){Promise.<any>}

Layers/GoIOTLayer/index.ts, line 724

Retrieves the tag view data from the Nexus service.

Name Type Description
dataViews Array

An array of data views to query.

Returns:
Type Description
Promise.<any> A promise that resolves to the response from the Nexus service.

getNexusTags(dataTags){Promise.<any>}

Layers/GoIOTLayer/index.ts, line 767

Retrieves the tag data from the Nexus service.

Name Type Description
dataTags Array.<Object>

An array of data tags to query.

Returns:
Type Description
Promise.<any> A promise that resolves to the response from the Nexus service.

inherited getOlMap(){OlMap}

Layers/GoLayer/index.ts, line 400

Gets the OpenLayers map instance associated with the layer.

Returns:
Type Description
OlMap The OpenLayers map instance.

inherited getOptions(){layerOptions}

Layers/GoLayer/index.ts, line 567

Gets the options used to configure the layer.

Returns:
Type Description
layerOptions The layer configuration options.

getPropsFromFeatureIOT(feature){Object}

Layers/GoIOTLayer/index.ts, line 543

Extracts and returns properties from a feature based on the IOT label configuration.

Name Type Description
feature FeatureLike

The OpenLayers feature from which to extract properties.

Returns:
Name Type Description
An Object object containing the extracted properties.
returns.uid string - The unique identifier.
returns.type string - The type of the entity.
returns.name string - The name of the entity.
returns.units string - The units associated with the entity.
returns.viewUid string - The unique identifier for the view.
returns.columnUid string - The unique identifier for the column.

inherited getSLD(sldStyle, idLayer){CancelablePromise.<types.sldConfiguration>}

Layers/GoStyledLayer/index.ts, line 434

Retrieves the SLD (Styled Layer Descriptor) configuration based on the provided style options and layer ID.

Name Type Description
sldStyle types.styleOptions

The style options containing the URL for the SLD.

idLayer string

The ID of the layer for which the SLD configuration is requested.

Returns:
Type Description
CancelablePromise.<types.sldConfiguration> A promise that resolves to the SLD configuration.

getSource(){VectorSource.<Feature.<Geometry>>}

Layers/GoIOTLayer/index.ts, line 121

Gets the vector source of the layer.

Returns:
Type Description
VectorSource.<Feature.<Geometry>> The vector source.

inherited getStyleFromSLD(sldStyle){CancelablePromise.<types.sldStyleFunction>}

Layers/GoStyledLayer/index.ts, line 393

Retrieves the SLD (Styled Layer Descriptor) configuration based on the provided style options.

Name Type Description
sldStyle types.styleOptions

The style options containing the URL for the SLD.

Returns:
Type Description
CancelablePromise.<types.sldStyleFunction> A promise that resolves to the SLD style function.

inherited getStyleFunction(){types.sldStyleFunction}

Layers/GoStyledLayer/index.ts, line 371

Retrieves the style function associated with the layer.

Returns:
Type Description
types.sldStyleFunction The style function for the layer.

getTagViewStructure(features){object}

Layers/GoIOTLayer/index.ts, line 388

Generates a structured representation of tag views from a list of features.

Name Type Description
features Array.<Feature.<Geometry>>

An array of features to structure by tag views.

Returns:
Type Description
object An object containing the structured tag views. Each tag view includes a unique identifier (tagview_uid) and an array of features associated with that tag view.

inherited getURLDownload(formatOutput){Array.<string>}

Layers/GoStyledLayer/index.ts, line 502

This function allow to get the URL to download any layer stored in Geoserver.

Name Type Description
formatOutput string

Format of the output file

Returns:
Type Description
Array.<string> Return an array of string [idLayer, formatOutput, url]

getUrl(){string}

Layers/GoIOTLayer/index.ts, line 660

Retrieves the URL associated with the layer.

Returns:
Type Description
string The URL of the layer.

getVisibility(){boolean}

Layers/GoIOTLayer/index.ts, line 669

Retrieves the visibility status of the layer.

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

inherited getZIndex(){number}

Layers/GoLayer/index.ts, line 456

Gets the z-index of the layer.

Returns:
Type Description
number The z-index value.

inherited goMap(){void}

Layers/GoLayer/index.ts, line 130

This function allow to get the map.

Returns:
Type Description
void Return GOStagingMap

inherited hasEvent(eventName){boolean}

Layers/GoLayer/index.ts, line 237

Checks if there are listeners registered for the specified event.

Name Type Description
eventName string

The name of the event to check for listeners.

Returns:
Type Description
boolean True if there are listeners for the event, false otherwise.

inherited hasFilter(){boolean}

Layers/GoLayer/index.ts, line 305

Checks if this layer currently has a filter applied.

Returns:
Type Description
boolean True if a filter is applied, false otherwise.

inherited hasLabelStyle(){boolean}

Layers/GoStyledLayer/index.ts, line 84

Determines if the layer has a label style.

Returns:
Type Description
boolean True if label style exists, otherwise false.

inherited isBaseLayer(){boolean}

Layers/GoLayer/index.ts, line 158

Checks if the layer is a base layer.

Returns:
Type Description
boolean True if the layer is a base layer, false otherwise.

isGeometryType(type){boolean}

Layers/GoIOTLayer/index.ts, line 162

Checks if the geometry type is of a specified type.

Name Type Description
type string

The type to check.

Returns:
Type Description
boolean True if the geometry type matches the specified type.

asyncloader(extent){Promise.<void>}

Layers/GoIOTLayer/index.ts, line 172

Loads features from a WFS (Web Feature Service) endpoint and adds them to the vector source.

Name Type Description
extent Extent

The spatial extent for the WFS request, defining the bounding box for the features to be loaded.

Returns:
Type Description
Promise.<void> A promise that resolves when the features have been successfully loaded and processed, or rejects if an error occurs during the loading process.

inherited mapStyleConditionGeometry(f, geometryFilter){string}

Layers/GoStyledLayer/index.ts, line 97

Maps style conditions based on geometry filter.

Name Type Description
f Feature.<Geometry>

The feature.

geometryFilter Object

The geometry filter.

Name Type Description
field string

The field of the condition.

type string

The type of the condition.

condition Array.<any>

The condition values.

Returns:
Type Description
string The CQL filter for geometry.

inherited mapStyleConditionSVG(style, clear){CancelablePromise.<Map.<string, Style>>}

Layers/GoStyledLayer/index.ts, line 111

Maps style conditions based on SVG styles.

Name Type Default Description
style Array.<types.styleConditionSVG>

Array of SVG style conditions.

clear boolean false optional

Whether to clear existing conditions.

Returns:
Type Description
CancelablePromise.<Map.<string, Style>> A promise that resolves to a map of style conditions.

inherited off(eventName, callback){void}

Layers/GoLayer/index.ts, line 217

Removes an event listener for the specified event.

Name Type Description
eventName string optional

The name of the event to remove the listener from.

callback function optional

The callback function to remove.

Returns:
Type Description
void

inherited on(eventName, callback){void}

Layers/GoLayer/index.ts, line 197

Registers an event listener for the specified event.

Name Type Description
eventName string

The name of the event to listen for.

callback function

The callback function to invoke when the event is fired.

Returns:
Type Description
void

inherited onLayerLoaded(){Promise.<unknown>}

Layers/GoLayer/index.ts, line 175

Returns a promise that resolves when the layer is fully loaded.

Returns:
Type Description
Promise.<unknown> A promise that resolves when the layer is loaded.

inherited onPropChange(obj, prop, callback){void}

Layers/GoLayer/index.ts, line 258

Monitors changes to a specific property of an object and fires an event when the property changes.

Name Type Description
obj Object

The object containing the property to monitor.

prop string

The name of the property to monitor.

callback function

The callback function to invoke when the property changes.

Returns:
Type Description
void

inherited once(eventName, callback){void}

Layers/GoLayer/index.ts, line 207

Registers a one-time event listener for the specified event.

Name Type Description
eventName string

The name of the event to listen for once.

callback function

The callback function to invoke when the event is fired.

Returns:
Type Description
void

refresh()

Layers/GoIOTLayer/index.ts, line 127

Refreshes the layer source data.

inherited removeFilter(){void}

Layers/GoLayer/index.ts, line 355

Removes the filter applied to the layer, resetting it to the default state. Forces the layer to refresh after removing the filter.

Returns:
Type Description
void

inherited removeFilterNoCQL(filter){void}

Layers/GoStyledLayer/index.ts, line 215

Removes a filter from the layer without using CQL.

Name Type Description
filter types.filterNoCQL

The filter to remove.

Returns:
Type Description
void

resizableUnitsStyles(text){Style}

Layers/GoIOTLayer/index.ts, line 588

Generates a style configuration for features with resizable unit labels. The style adjusts based on the length of the text to ensure proper display.

Name Type Description
text string

The text to be displayed in the style.

Returns:
Type Description
Style An OpenLayers Style object configured with a resizable regular shape and text.

inherited setLayerStyle(style){void|Promise}

Layers/GoLayer/index.ts, line 629

Sets the style of the layer and optionally adds annotations if applicable.

Name Type Description
style Array.<GoGlobalStyle> | GoGlobalStyle optional

The style or array of styles to apply.

Returns:
Type Description
void | Promise
  • Returns nothing or a promise depending on the type of style applied.

inherited setMaxResolution(maxResolution){void}

Layers/GoLayer/index.ts, line 611

Sets the maximum resolution at which the layer is visible.

Name Type Description
maxResolution number

The maximum resolution value.

Returns:
Type Description
void

inherited setMinResolution(minResolution){void}

Layers/GoLayer/index.ts, line 620

Sets the minimum resolution at which the layer is visible.

Name Type Description
minResolution number

The minimum resolution value.

Returns:
Type Description
void

inherited setStyleValues(styleInfoSVG, clear){CancelablePromise.<Map.<string, Style>>}

Layers/GoStyledLayer/index.ts, line 579

Sets style values based on the provided SVG style information and optionally clears existing styles.

Name Type Description
styleInfoSVG any

The SVG style information to set.

clear boolean optional

Optional flag to clear existing styles before applying the new ones.

Returns:
Type Description
CancelablePromise.<Map.<string, Style>> A promise that resolves to a map of style values.

setVisibility(visibility)

Layers/GoIOTLayer/index.ts, line 809

Sets the visibility status of the layer.

Name Type Description
visibility boolean

The visibility status to set (true to show, false to hide).

inherited setZIndex(zIndex){void}

Layers/GoLayer/index.ts, line 602

Sets the z-index of the layer.

Name Type Description
zIndex number

The z-index value to set.

Returns:
Type Description
void

type(){string}

Layers/GoIOTLayer/index.ts, line 135

Gets the type of the layer.

Returns:
Type Description
string The type of the layer.

inherited unmount(){void}

Layers/GoLayer/index.ts, line 88

Unmount function

Returns:
Type Description
void

inherited validateLayerConfig(layerOpts){void}

Layers/GoLayer/index.ts, line 116

Validates the layer configuration and sets default values if necessary.

Name Type Description
layerOpts types.layerOptions

The layer options to validate.

Returns:
Type Description
void

GoIOTLayer

new GoIOTLayer(olMap, layerOpts, topicId)

Layers/GoIOTLayer/index.ts, line 45

Constructs an instance of GoIOTLayer.

Name Type Description
olMap OlMap

The OpenLayers map instance.

layerOpts module:types~layerOptions

Options for configuring the layer.

topicId string

Identifier for the topic associated with the layer.

Methods

inherited addFilterNoCQL(filter){void}

Layers/GoStyledLayer/index.ts, line 194

Adds a filter to the layer without using CQL.

Name Type Description
filter types.filterNoCQL

The filter to add.

Returns:
Type Description
void

inherited addInteractions(interactions){GoLayerInteractions}

Layers/GoLayer/index.ts, line 184

Adds interactions to the layer.

Name Type Description
interactions LayerInteractions

The interactions to be added to the layer.

Returns:
Type Description
GoLayerInteractions The interactions object associated with the layer.

inherited addStyleFunction(styleFunction){void}

Layers/GoStyledLayer/index.ts, line 233

Adds a style function to the layer.

Name Type Description
styleFunction types.styleFunction

The style function to add.

Returns:
Type Description
void

inherited changeLayerOpacity(opacity){void}

Layers/GoLayer/index.ts, line 167

Changes the opacity of the layer.

Name Type Description
opacity number

The new opacity value (0-100).

Returns:
Type Description
void

inherited changeStyleConditional(style, clear){void}

Layers/GoStyledLayer/index.ts, line 133

Changes the style of the layer based on style conditions.

Name Type Default Description
style types.styleGeojson | types.styleSVG

The style information.

clear boolean false optional

Whether to clear existing styles.

Returns:
Type Description
void

inherited changeStyleFromJSON(style){Style}

Layers/GoStyledLayer/index.ts, line 147

This function allow to change the style of the layer from a JSON

Name Type Description
style types.styleGeojson

Style Styles to apply over the layer

Returns:
Type Description
Style
  • Return Style

inherited clasificationEnumTypeCQLGeometry(f, field, type, value){string}

Layers/GoStyledLayer/index.ts, line 252

This function allow to clasify the CQL filters of the type Geometry

Name Type Description
f any

The feature

field string

The field of the condition

type string

The type of the condition

value Array.<any>

The value of the condition

Returns:
Type Description
string Return the CQL filter type Geometry.

inherited createStyleFunction(mapUnits){function}

Layers/GoStyledLayer/index.ts, line 323

This function allow to create the styles of the layer

Name Type Description
mapUnits boolean

The units of the map

Returns:
Type Description
function A function that can be set as an OpenLayers style function.

inherited emit(eventName, args){void}

Layers/GoLayer/index.ts, line 227

Emits an event to all registered listeners for the specified event.

Name Type Description
eventName string

The name of the event to emit.

args Array.<any> repeatable

Additional arguments to pass to the event listeners.

Returns:
Type Description
void

enrichFeatures(layer){void}

Layers/GoIOTLayer/index.ts, line 308

Enriches the features in the layer by updating their properties with additional data from the Nexus service.

Name Type Description
layer module:Layers/GoIOTLayer/index.ts~GoIOTLayer

The layer instance to enrich features for.

Returns:
Type Description
void This method does not return a value. It updates the features' properties directly.

exportGeoJsonFormatFeatures(){string|null}

Layers/GoIOTLayer/index.ts, line 143

Exports features from the layer to GeoJSON format.

Returns:
Type Description
string | null GeoJSON string if features are present, otherwise null.

filterIOT(typeToFind, features){Object}

Layers/GoIOTLayer/index.ts, line 501

Filters an array of features to find those that match a specific type based on the IOT label configuration.

Name Type Description
typeToFind string

The type of IOT feature to find (e.g., "SIGNAL" or "VIEW").

features Object

An array of OpenLayers features to filter.

Returns:
Type Description
Object An array of features that match the specified IOT type. If the configuration is not valid, it logs an error and returns an empty array.

inherited fixIconPaths(styleName, origin){void}

Layers/GoStyledLayer/index.ts, line 339

This function allow to fix the paths of the icons

Name Type Description
styleName string

The name of the style

origin string

The origin of the icon

Returns:
Type Description
void Return nothing

inherited getAlias(){string}

Layers/GoLayer/index.ts, line 416

Gets the alias of the layer.

Returns:
Type Description
string The alias of the layer.

inherited getEventHandlers(eventName){Array.<function()>}

Layers/GoLayer/index.ts, line 246

Gets the event handlers for the specified event.

Name Type Description
eventName string

The name of the event to retrieve handlers for.

Returns:
Type Description
Array.<function()> An array of event handler functions.

inherited getExtent(){Array.<number>|null}

Layers/GoLayer/index.ts, line 547

Gets the geographical extent of the layer.

Returns:
Type Description
Array.<number> | null The extent as an array of numbers or null if the extent is not defined.

getFeatureType(){string}

Layers/GoIOTLayer/index.ts, line 698

Retrieves the feature type used by the layer.

Returns:
Type Description
string The feature type of the layer.

getFilter(){string}

Layers/GoIOTLayer/index.ts, line 678

Retrieves and formats the filter for the layer if it exists.

Returns:
Type Description
string The formatted filter string, or an empty string if no filter is set.

asyncgetGeometryName(){Promise.<string>}

Layers/GoIOTLayer/index.ts, line 642

Asynchronously retrieves the name of the geometry from the layer's properties.

Returns:
Type Description
Promise.<string> A promise that resolves to the name of the geometry.

getGeometryType(){GOGeometryType}

Layers/GoIOTLayer/index.ts, line 689

Retrieves the geometry type used by the layer.

Returns:
Type Description
GOGeometryType The geometry type of the layer (e.g., POINT, LINE, POLYGON).

inherited getId(){string}

Layers/GoLayer/index.ts, line 424

Gets the unique identifier of the layer.

Returns:
Type Description
string The layer ID.

inherited getInitialStyle(keyStyle){Style}

Layers/GoStyledLayer/index.ts, line 546

Retrieves the initial style based on the provided key style.

Name Type Description
keyStyle string

The key to determine the type of style to retrieve ("json" or "svg").

Throws:

Throws an error if the keyStyle is not recognized or if an error occurs while processing the style.

Type
Error
Returns:
Type Description
Style The initial style based on the key style provided.

inherited getLabelField(){string}

Layers/GoStyledLayer/index.ts, line 380

Retrieves the label field from the style's text symbolizer.

Throws:

Throws an error if the text symbolizer is not found or if label type is not "expression".

Type
Error
Returns:
Type Description
string The label field value.

getLayer(){VectorImageLayer.<VectorSource.<Feature.<Geometry>>>}

Layers/GoIOTLayer/index.ts, line 624

Retrieves the vector layer associated with this instance.

Returns:
Type Description
VectorImageLayer.<VectorSource.<Feature.<Geometry>>> The vector layer.

getLayerDescription(){Promise.<(string|undefined)>}

Layers/GoIOTLayer/index.ts, line 708

Retrieves a description of the layer by making an HTTP request to fetch feature type details.

Returns:
Type Description
Promise.<(string|undefined)> A promise that resolves to the geometry field name if successful, or undefined if an error occurs.

getLayerName(){string}

Layers/GoIOTLayer/index.ts, line 633

Retrieves the name of the layer.

Returns:
Type Description
string The name of the layer.

inherited getLayerOpts(){types.layerOptions}

Layers/GoLayer/index.ts, line 408

Gets the options used to configure the layer.

Returns:
Type Description
types.layerOptions The layer configuration options.

getLayerProjection(){string}

Layers/GoIOTLayer/index.ts, line 651

Retrieves the projection code of the layer.

Returns:
Type Description
string The projection code of the layer.

inherited getLayerStyle(){GoStyle}

Layers/GoLayer/index.ts, line 575

Gets the style associated with the layer.

Returns:
Type Description
GoStyle The style of the layer.

inherited getLayerType(){string}

Layers/GoLayer/index.ts, line 448

Gets the type of the layer.

Returns:
Type Description
string The layer type.

inherited getLayerUrl()

Layers/GoLayer/index.ts, line 107

get layerUrl

inherited getMapStyle(idStyle){Map}

Layers/GoStyledLayer/index.ts, line 465

Retrieves the map style associated with the specified style ID. If no ID is provided, retrieves the initial style.

Name Type Description
idStyle string optional

The ID of the style to retrieve.

Returns:
Type Description
Map The map of styles associated with the specified ID or initial style.

inherited getMaxResolution(){number}

Layers/GoLayer/index.ts, line 464

Gets the maximum resolution at which the layer is visible.

Returns:
Type Description
number The maximum resolution.

inherited getMinResolution(){number}

Layers/GoLayer/index.ts, line 472

Gets the minimum resolution at which the layer is visible.

Returns:
Type Description
number The minimum resolution.

getNexusTagViews(dataViews){Promise.<any>}

Layers/GoIOTLayer/index.ts, line 724

Retrieves the tag view data from the Nexus service.

Name Type Description
dataViews Array

An array of data views to query.

Returns:
Type Description
Promise.<any> A promise that resolves to the response from the Nexus service.

getNexusTags(dataTags){Promise.<any>}

Layers/GoIOTLayer/index.ts, line 767

Retrieves the tag data from the Nexus service.

Name Type Description
dataTags Array.<Object>

An array of data tags to query.

Returns:
Type Description
Promise.<any> A promise that resolves to the response from the Nexus service.

inherited getOlMap(){OlMap}

Layers/GoLayer/index.ts, line 400

Gets the OpenLayers map instance associated with the layer.

Returns:
Type Description
OlMap The OpenLayers map instance.

inherited getOptions(){layerOptions}

Layers/GoLayer/index.ts, line 567

Gets the options used to configure the layer.

Returns:
Type Description
layerOptions The layer configuration options.

getPropsFromFeatureIOT(feature){Object}

Layers/GoIOTLayer/index.ts, line 543

Extracts and returns properties from a feature based on the IOT label configuration.

Name Type Description
feature FeatureLike

The OpenLayers feature from which to extract properties.

Returns:
Name Type Description
An Object object containing the extracted properties.
returns.uid string - The unique identifier.
returns.type string - The type of the entity.
returns.name string - The name of the entity.
returns.units string - The units associated with the entity.
returns.viewUid string - The unique identifier for the view.
returns.columnUid string - The unique identifier for the column.

inherited getSLD(sldStyle, idLayer){CancelablePromise.<types.sldConfiguration>}

Layers/GoStyledLayer/index.ts, line 434

Retrieves the SLD (Styled Layer Descriptor) configuration based on the provided style options and layer ID.

Name Type Description
sldStyle types.styleOptions

The style options containing the URL for the SLD.

idLayer string

The ID of the layer for which the SLD configuration is requested.

Returns:
Type Description
CancelablePromise.<types.sldConfiguration> A promise that resolves to the SLD configuration.

getSource(){VectorSource.<Feature.<Geometry>>}

Layers/GoIOTLayer/index.ts, line 121

Gets the vector source of the layer.

Returns:
Type Description
VectorSource.<Feature.<Geometry>> The vector source.

inherited getStyleFromSLD(sldStyle){CancelablePromise.<types.sldStyleFunction>}

Layers/GoStyledLayer/index.ts, line 393

Retrieves the SLD (Styled Layer Descriptor) configuration based on the provided style options.

Name Type Description
sldStyle types.styleOptions

The style options containing the URL for the SLD.

Returns:
Type Description
CancelablePromise.<types.sldStyleFunction> A promise that resolves to the SLD style function.

inherited getStyleFunction(){types.sldStyleFunction}

Layers/GoStyledLayer/index.ts, line 371

Retrieves the style function associated with the layer.

Returns:
Type Description
types.sldStyleFunction The style function for the layer.

getTagViewStructure(features){object}

Layers/GoIOTLayer/index.ts, line 388

Generates a structured representation of tag views from a list of features.

Name Type Description
features Array.<Feature.<Geometry>>

An array of features to structure by tag views.

Returns:
Type Description
object An object containing the structured tag views. Each tag view includes a unique identifier (tagview_uid) and an array of features associated with that tag view.

inherited getURLDownload(formatOutput){Array.<string>}

Layers/GoStyledLayer/index.ts, line 502

This function allow to get the URL to download any layer stored in Geoserver.

Name Type Description
formatOutput string

Format of the output file

Returns:
Type Description
Array.<string> Return an array of string [idLayer, formatOutput, url]

getUrl(){string}

Layers/GoIOTLayer/index.ts, line 660

Retrieves the URL associated with the layer.

Returns:
Type Description
string The URL of the layer.

getVisibility(){boolean}

Layers/GoIOTLayer/index.ts, line 669

Retrieves the visibility status of the layer.

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

inherited getZIndex(){number}

Layers/GoLayer/index.ts, line 456

Gets the z-index of the layer.

Returns:
Type Description
number The z-index value.

inherited goMap(){void}

Layers/GoLayer/index.ts, line 130

This function allow to get the map.

Returns:
Type Description
void Return GOStagingMap

inherited hasEvent(eventName){boolean}

Layers/GoLayer/index.ts, line 237

Checks if there are listeners registered for the specified event.

Name Type Description
eventName string

The name of the event to check for listeners.

Returns:
Type Description
boolean True if there are listeners for the event, false otherwise.

inherited hasFilter(){boolean}

Layers/GoLayer/index.ts, line 305

Checks if this layer currently has a filter applied.

Returns:
Type Description
boolean True if a filter is applied, false otherwise.

inherited hasLabelStyle(){boolean}

Layers/GoStyledLayer/index.ts, line 84

Determines if the layer has a label style.

Returns:
Type Description
boolean True if label style exists, otherwise false.

inherited isBaseLayer(){boolean}

Layers/GoLayer/index.ts, line 158

Checks if the layer is a base layer.

Returns:
Type Description
boolean True if the layer is a base layer, false otherwise.

isGeometryType(type){boolean}

Layers/GoIOTLayer/index.ts, line 162

Checks if the geometry type is of a specified type.

Name Type Description
type string

The type to check.

Returns:
Type Description
boolean True if the geometry type matches the specified type.

asyncloader(extent){Promise.<void>}

Layers/GoIOTLayer/index.ts, line 172

Loads features from a WFS (Web Feature Service) endpoint and adds them to the vector source.

Name Type Description
extent Extent

The spatial extent for the WFS request, defining the bounding box for the features to be loaded.

Returns:
Type Description
Promise.<void> A promise that resolves when the features have been successfully loaded and processed, or rejects if an error occurs during the loading process.

inherited mapStyleConditionGeometry(f, geometryFilter){string}

Layers/GoStyledLayer/index.ts, line 97

Maps style conditions based on geometry filter.

Name Type Description
f Feature.<Geometry>

The feature.

geometryFilter Object

The geometry filter.

Name Type Description
field string

The field of the condition.

type string

The type of the condition.

condition Array.<any>

The condition values.

Returns:
Type Description
string The CQL filter for geometry.

inherited mapStyleConditionSVG(style, clear){CancelablePromise.<Map.<string, Style>>}

Layers/GoStyledLayer/index.ts, line 111

Maps style conditions based on SVG styles.

Name Type Default Description
style Array.<types.styleConditionSVG>

Array of SVG style conditions.

clear boolean false optional

Whether to clear existing conditions.

Returns:
Type Description
CancelablePromise.<Map.<string, Style>> A promise that resolves to a map of style conditions.

inherited off(eventName, callback){void}

Layers/GoLayer/index.ts, line 217

Removes an event listener for the specified event.

Name Type Description
eventName string optional

The name of the event to remove the listener from.

callback function optional

The callback function to remove.

Returns:
Type Description
void

inherited on(eventName, callback){void}

Layers/GoLayer/index.ts, line 197

Registers an event listener for the specified event.

Name Type Description
eventName string

The name of the event to listen for.

callback function

The callback function to invoke when the event is fired.

Returns:
Type Description
void

inherited onLayerLoaded(){Promise.<unknown>}

Layers/GoLayer/index.ts, line 175

Returns a promise that resolves when the layer is fully loaded.

Returns:
Type Description
Promise.<unknown> A promise that resolves when the layer is loaded.

inherited onPropChange(obj, prop, callback){void}

Layers/GoLayer/index.ts, line 258

Monitors changes to a specific property of an object and fires an event when the property changes.

Name Type Description
obj Object

The object containing the property to monitor.

prop string

The name of the property to monitor.

callback function

The callback function to invoke when the property changes.

Returns:
Type Description
void

inherited once(eventName, callback){void}

Layers/GoLayer/index.ts, line 207

Registers a one-time event listener for the specified event.

Name Type Description
eventName string

The name of the event to listen for once.

callback function

The callback function to invoke when the event is fired.

Returns:
Type Description
void

refresh()

Layers/GoIOTLayer/index.ts, line 127

Refreshes the layer source data.

inherited removeFilter(){void}

Layers/GoLayer/index.ts, line 355

Removes the filter applied to the layer, resetting it to the default state. Forces the layer to refresh after removing the filter.

Returns:
Type Description
void

inherited removeFilterNoCQL(filter){void}

Layers/GoStyledLayer/index.ts, line 215

Removes a filter from the layer without using CQL.

Name Type Description
filter types.filterNoCQL

The filter to remove.

Returns:
Type Description
void

resizableUnitsStyles(text){Style}

Layers/GoIOTLayer/index.ts, line 588

Generates a style configuration for features with resizable unit labels. The style adjusts based on the length of the text to ensure proper display.

Name Type Description
text string

The text to be displayed in the style.

Returns:
Type Description
Style An OpenLayers Style object configured with a resizable regular shape and text.

inherited setLayerStyle(style){void|Promise}

Layers/GoLayer/index.ts, line 629

Sets the style of the layer and optionally adds annotations if applicable.

Name Type Description
style Array.<GoGlobalStyle> | GoGlobalStyle optional

The style or array of styles to apply.

Returns:
Type Description
void | Promise
  • Returns nothing or a promise depending on the type of style applied.

inherited setMaxResolution(maxResolution){void}

Layers/GoLayer/index.ts, line 611

Sets the maximum resolution at which the layer is visible.

Name Type Description
maxResolution number

The maximum resolution value.

Returns:
Type Description
void

inherited setMinResolution(minResolution){void}

Layers/GoLayer/index.ts, line 620

Sets the minimum resolution at which the layer is visible.

Name Type Description
minResolution number

The minimum resolution value.

Returns:
Type Description
void

inherited setStyleValues(styleInfoSVG, clear){CancelablePromise.<Map.<string, Style>>}

Layers/GoStyledLayer/index.ts, line 579

Sets style values based on the provided SVG style information and optionally clears existing styles.

Name Type Description
styleInfoSVG any

The SVG style information to set.

clear boolean optional

Optional flag to clear existing styles before applying the new ones.

Returns:
Type Description
CancelablePromise.<Map.<string, Style>> A promise that resolves to a map of style values.

setVisibility(visibility)

Layers/GoIOTLayer/index.ts, line 809

Sets the visibility status of the layer.

Name Type Description
visibility boolean

The visibility status to set (true to show, false to hide).

inherited setZIndex(zIndex){void}

Layers/GoLayer/index.ts, line 602

Sets the z-index of the layer.

Name Type Description
zIndex number

The z-index value to set.

Returns:
Type Description
void

type(){string}

Layers/GoIOTLayer/index.ts, line 135

Gets the type of the layer.

Returns:
Type Description
string The type of the layer.

inherited unmount(){void}

Layers/GoLayer/index.ts, line 88

Unmount function

Returns:
Type Description
void

inherited validateLayerConfig(layerOpts){void}

Layers/GoLayer/index.ts, line 116

Validates the layer configuration and sets default values if necessary.

Name Type Description
layerOpts types.layerOptions

The layer options to validate.

Returns:
Type Description
void