new GOWFSLayer(boolean, string, string)
| Name | Type | Description |
|---|---|---|
boolean |
esri |
String to know if the wfs comes from Esri or from Geoserver. |
string |
user |
String with the user in case that we need user and pass to get the data. |
string |
password |
String with the password in case that we need user and pass to get the data. |
Extends
- GOStyledLayer
- undefined
Methods
-
inherited addFilterNoCQL(filter){void}
Layers/GoStyledLayer/index.ts, line 194 -
Adds a filter to the layer without using CQL.
Name Type Description filtertypes.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 interactionsLayerInteractions 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 styleFunctiontypes.styleFunction The style function to add.
Returns:
Type Description void -
canFilter(){boolean}
Layers/GoWFS/index.ts, line 328 -
Determines if the layer can be filtered.
Returns:
Type Description boolean trueif the layer can be filtered, otherwisefalse. -
inherited changeLayerOpacity(opacity){void}
Layers/GoLayer/index.ts, line 167 -
Changes the opacity of the layer.
Name Type Description opacitynumber The new opacity value (0-100).
Returns:
Type Description void -
changeStyle(style)
Layers/GoWFS/index.ts, line 297 -
Changes the style of the layer based on user-defined style options.
Name Type Description styletypes.styleFromUser The style options to apply to the layer.
-
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 styletypes.styleGeojson | types.styleSVG The style information.
clearboolean 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 styletypes.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 fany The feature
fieldstring The field of the condition
typestring The type of the condition
valueArray.<any> The value of the condition
Returns:
Type Description string Return the CQL filter type Geometry. -
clearAllIntervals(intervals)
Layers/GoWFS/index.ts, line 388 -
It takes an array of intervals and clears them all.
Name Type Description intervalsArray.<any> any[]
-
inherited createStyleFunction(mapUnits){function}
Layers/GoStyledLayer/index.ts, line 323 -
This function allow to create the styles of the layer
Name Type Description mapUnitsboolean 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 eventNamestring The name of the event to emit.
argsArray.<any> repeatable Additional arguments to pass to the event listeners.
Returns:
Type Description void -
exportGeoJsonFormatFeatures(){string|null}
Layers/GoWFS/index.ts, line 345 -
Exports the features of the layer in GeoJSON format.
Returns:
Type Description string | null A GeoJSON string representing the features in the layer, or nullif no features are present. -
inherited fixIconPaths(styleName, origin){void}
Layers/GoStyledLayer/index.ts, line 339 -
This function allow to fix the paths of the icons
Name Type Description styleNamestring The name of the style
originstring 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. -
getEsriToken()
Layers/GoWFS/index.ts, line 418 -
This function return the Esri token
Returns:
- token
-
getEsritokenServicesUrl()
Layers/GoWFS/index.ts, line 444 -
This function return the Esri url to generate an Esri Token
Returns:
- tokenURLEsri
-
inherited getEventHandlers(eventName){Array.<function()>}
Layers/GoLayer/index.ts, line 246 -
Gets the event handlers for the specified event.
Name Type Description eventNamestring 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. -
getFilter(){string}
Layers/GoWFS/index.ts, line 537 -
Retrieves the filter applied to the layer.
This method returns the filter string associated with the layer, formatted according to the bounding box (
bbox) if it exists. If no filter is applied, it returns an empty string.Returns:
Type Description string The filter string, or an empty string if no filter is applied. -
asyncgetGeometryName(){Promise.<string>}
Layers/GoWFS/index.ts, line 492 -
Asynchronously retrieves the geometry name from the layer's metadata.
This method fetches the geometry name stored in the layer's metadata. It returns a promise that resolves to the geometry name.
Returns:
Type Description Promise.<string> A promise that resolves to the geometry name. -
getGeometryType(layerGeomType)
Layers/GoWFS/index.ts, line 549 -
It takes a GeometryType and returns a GOGeometryType.
Name Type Description layerGeomTypeGeometryType GeometryType
Returns:
A string. -
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 keyStylestring 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(){VectorLayer.<VectorSource>}
Layers/GoWFS/index.ts, line 470 -
Retrieves the OpenLayers vector layer instance.
This method returns the
VectorLayerinstance that is associated with this layer.Returns:
Type Description VectorLayer.<VectorSource> The OpenLayers vector layer. -
getLayerDescription()
Layers/GoWFS/index.ts, line 594 -
This function allow to get the layer description.
Returns:
A promise that resolves to a string. -
getLayerName(){string}
Layers/GoWFS/index.ts, line 481 -
Retrieves the name of the layer.
This method returns the name of the layer as specified in the layer options.
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/GoWFS/index.ts, line 504 -
Retrieves the projection code of the layer.
This method returns "4326" if no projection is specified.
Returns:
Type Description string The projection code of the layer, or 4326if not specified. -
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 idStylestring 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. -
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. -
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 sldStyletypes.styleOptions The style options containing the URL for the SLD.
idLayerstring 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. -
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 sldStyletypes.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. -
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 formatOutputstring Format of the output file
Returns:
Type Description Array.<string> Return an array of string [idLayer, formatOutput, url] -
getUrl(){string}
Layers/GoWFS/index.ts, line 515 -
Retrieves the URL associated with the layer.
This method returns the URL from which the layer's data is fetched.
Returns:
Type Description string The URL associated with the layer. -
getVisibility(){boolean}
Layers/GoWFS/index.ts, line 526 -
Checks whether the layer is visible.
This method returns a boolean indicating whether the layer is currently visible on the map.
Returns:
Type Description boolean trueif the layer is visible, otherwisefalse. -
inherited getZIndex(){number}
Layers/GoLayer/index.ts, line 456 -
Gets the z-index of the layer.
Returns:
Type Description number The z-index value. -
asyncgettokenfromEsriWFS()
Layers/GoWFS/index.ts, line 403 -
This function return the Esri token
Returns:
- token
-
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 eventNamestring The name of the event to check for listeners.
Returns:
Type Description boolean True if there are listeners for the event, false otherwise. -
hasFilter(){boolean}
Layers/GoWFS/index.ts, line 319 -
Checks if the layer has a filter applied.
Returns:
Type Description boolean trueif a filter is applied to the layer, otherwisefalse. -
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/GoWFS/index.ts, line 365 -
Checks if the given type is a valid geometry type.
Name Type Description typestring The geometry type to validate.
Returns:
Type Description boolean trueif the type is a known geometry type, otherwisefalse. -
isLoadedData(timeInterval, limit){CancelablePromise.<boolean>}
Layers/GoWFS/index.ts, line 259 -
Checks if the data has been loaded within a certain time interval.
Name Type Default Description timeIntervalnumber 1000 optional The time interval (in milliseconds) to check for data loading.
limitnumber 0 optional The number of times to check before giving up.
Returns:
Type Description CancelablePromise.<boolean> A promise that resolves to trueif data is loaded,falseotherwise. -
layerRenderListener(event)
Layers/GoWFS/index.ts, line 375 -
Handles the layer's render events to check for style and geometry type consistency.s This method checks if the style type set for the layer matches the geometry type of the features. If there is a mismatch, it logs an error. The method is then unregistered from the
prerenderevent.Name Type Description eventany The render event object.
-
asyncloader(extent){Promise.<AxiosResponse.<any>>}
Layers/GoWFS/index.ts, line 174 -
Loads data from the WFS service, including generating an ESRI token if necessary.
Name Type Description extentExtent The extent to use when querying for features.
Returns:
Type Description Promise.<AxiosResponse.<any>> A promise that resolves to the response from the WFS service. -
inherited mapStyleConditionGeometry(f, geometryFilter){string}
Layers/GoStyledLayer/index.ts, line 97 -
Maps style conditions based on geometry filter.
Name Type Description fFeature.<Geometry> The feature.
geometryFilterObject The geometry filter.
Name Type Description fieldstring The field of the condition.
typestring The type of the condition.
conditionArray.<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 styleArray.<types.styleConditionSVG> Array of SVG style conditions.
clearboolean 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 eventNamestring optional The name of the event to remove the listener from.
callbackfunction 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 eventNamestring The name of the event to listen for.
callbackfunction 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 objObject The object containing the property to monitor.
propstring The name of the property to monitor.
callbackfunction 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 eventNamestring The name of the event to listen for once.
callbackfunction The callback function to invoke when the event is fired.
Returns:
Type Description void -
refresh()
Layers/GoWFS/index.ts, line 286 -
Refreshes the data in the layer by forcing a refresh of the source.
-
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 filtertypes.filterNoCQL The filter to remove.
Returns:
Type Description void -
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 styleArray.<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 maxResolutionnumber 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 minResolutionnumber 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 styleInfoSVGany The SVG style information to set.
clearboolean 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. -
inherited setVisibility(visibility){void}
Layers/GoLayer/index.ts, line 593 -
Sets the visibility of the layer.
Name Type Description visibilityboolean True to make the layer visible, false to hide it.
Returns:
Type Description void -
inherited setZIndex(zIndex){void}
Layers/GoLayer/index.ts, line 602 -
Sets the z-index of the layer.
Name Type Description zIndexnumber The z-index value to set.
Returns:
Type Description void -
type(){string}
Layers/GoWFS/index.ts, line 337 -
Returns 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 -
validateLayerConfig(layerOpts)
Layers/GoWFS/index.ts, line 240 -
Validate the layer configuration
Name Type Description layerOptstypes.layerOptions
