All feature info layer set associated to the map
Used to access feature and bounding box highlighting
Feature info layer set associated to the map
Used to access geometry API to create and manage geometries
Hover feature info layer set associated to the map
Order to load layers
Legends layer set associated to the map
Reference on the map viewer
Static ReadonlyDEBUG_Temporary debugging flag indicating if we want the WMS group layers to have their sub layers fully blown up
Adds a layer to the map. This is the main method to add a GeoView Layer on the map. It handles all the processing, including the validations, and makes sure to inform the layer sets about the layer.
The geoview layer configuration to add.
OptionalabortSignal: AbortSignalAbort signal to handle cancelling of fetch.
The result of the addition of the geoview layer. The result contains the instanciated GeoViewLayer along with a promise that will resolve when the layer will be officially on the map.
Adds a Geoview Layer by GeoCore UUID.
The GeoCore UUID to add to the map
OptionallayerEntryConfig: stringThe optional layer configuration
A promise which resolves when done adding
Calculates an union of all the layer extents based on the given layerPath and its possible children.
The layer path
An extent representing an union of all layer extents associated with the layer path
Checks if the layer results sets are all greater than or equal to the provided status
OptionalcallbackNotGood: (layerConfig: ConfigBaseClass) => voidClears any overridden CRS settings on all WMS layers in the map.
Iterates through all GeoView layers, identifies those that are instances of GVWMS,
and resets their override CRS to undefined, allowing them to use the default projection behavior.
Creates an instance of a specific AbstractGeoViewLayer subclass based on the given GeoView layer configuration.
This function determines the correct layer type from the configuration and instantiates it accordingly.
The configuration object for the GeoView layer.
An instance of the corresponding AbstractGeoViewLayer subclass.
Gets the max extent of all layers on the map, or of a provided subset of layers.
IDs or layerPaths of layers to get max extents from.
The overall extent.
Gets the GeoView Layer Ids / UUIDs.
The ids of the layers
Returns the GeoView instance associated to the layer path.
The layer path
The new Geoview Layer or undefined when not found
Gets the GeoView Layer Paths.
The layer paths of the GV Layers
Gets all GeoView Layers
The list of new Geoview Layers
Gets the layer configuration of the specified layer path.
The layer path.
The layer configuration or undefined if not found.
Gets the Layer Entry Config Ids
The GeoView Layer Ids
Gets the layer configuration of the specified layer path.
The layer path.
The layer configuration or undefined if not found.
Gets the Layer Entry Configs
The GeoView Layer Entry Configs
Gets the Map Id.
The map id
Asynchronously returns the OpenLayer layer associated to a specific layer path. This function waits the timeout period before abandonning (or uses the default timeout when not provided). Note this function uses the 'Async' suffix to differentiate it from 'getOLLayer'.
The layer path to the layer's configuration.
Optionaltimeout: numberOptionally indicate the timeout after which time to abandon the promise
OptionalcheckFrequency: numberOptionally indicate the frequency at which to check for the condition on the layerabstract
Returns the OpenLayer layer associated to the layer path.
Returns the OpenLayer instance associated with the layer path.
The layer path to the layer's configuration.
Returns the geoview instance associated to the layer path.
Highlights layer or sublayer on map
ID of layer to highlight
Verifies if a layer is registered. Returns true if registered.
The layer path to check.
Returns true if the layer configuration is registered.
Load layers that was passed in with the map config
An optional array containing layers passed within the map config
Unregisters a layer all loaded/error event handler.
The callback to stop being called whenever the event is emitted
Unregisters a layer config added event handler.
The callback to stop being called whenever the event is emitted
Unregisters a layer config error event handler.
The callback to stop being called whenever the event is emitted
Unregisters a layer removed event handler.
The callback to stop being called whenever the event is emitted
Unregisters a layer created event handler.
The callback to stop being called whenever the event is emitted
Unregisters a layer error event handler.
The callback to stop being called whenever the event is emitted
Unregisters a layer first loaded event handler.
The callback to stop being called whenever the event is emitted
Unregisters a layer item visibility toggled event handler.
The callback to stop being called whenever the event is emitted
Unregisters a layer loaded event handler.
The callback to stop being called whenever the event is emitted
Unregisters a layer loading event handler.
The callback to stop being called whenever the event is emitted
Unregisters a callback from being called whenever the layer status is updated.
The callback function to unregister
Unregisters a layer visibility toggled event handler.
The callback to stop being called whenever the event is emitted
Registers a layer all loaded/error event handler.
The callback to be executed whenever the event is emitted
Registers a layer config added event handler.
The callback to be executed whenever the event is emitted
Registers a layer config error event handler.
The callback to be executed whenever the event is emitted
Registers a layer removed event handler.
The callback to be executed whenever the event is emitted
Registers a layer created event handler.
The callback to be executed whenever the event is emitted
Registers a layer error event handler.
The callback to be executed whenever the event is emitted
Registers a layer first loaded event handler.
The callback to be executed whenever the event is emitted
Registers a layer item visibility toggled event handler.
The callback to be executed whenever the event is emitted
Registers a layer loaded event handler.
The callback to be executed whenever the event is emitted
Registers a layer loading event handler.
The callback to be executed whenever the event is emitted
Registers a callback to be executed whenever the layer status is updated.
The callback function
Registers a layer visibility toggled event handler.
The callback to be executed whenever the event is emitted
Recalculates the bounds for all layers and updates the store.
Redefine feature info fields.
The path of the layer.
The new field names to use.
The fields to change.
Loops through all geoview layers and refresh their respective source. Use this function on projection change or other viewer modification who may affect rendering.
Registers the layer identifier.
The layer entry config to register
Registers the layer in the LayerApi layer-sets to start managing it. This function may be used to start managing a layer in the UI when said layer has been created outside of the regular config->layer flow.
The layer to register
Refreshes GeoCore Layers
Attempt to reload a layer.
The path to the layer to reload
Removes all geoview layers from the map
Removes all layers in error from the map
Removes layer or sublayer highlight
Removes layer and feature highlights for a given layer.
The path of the layer to remove highlights from.
Removes a layer from the map using its layer path. The path may point to the root geoview layer or a sub layer.
The path or ID of the layer to be removed
Replace outfield names, aliases and types with any number of new values, provided an identical count of each are supplied.
The path of the layer.
The new field types (TypeOutfieldsType) to use.
The new field names to use.
OptionalfieldAliases: string[]The new field aliases to use.
Set visibility of all geoview layers on the map
The new visibility.
Changes a GeoJson Source of a GeoJSON layer at the given layer path.
The path of the layer.
The new geoJSON.
Toggle visibility of an item.
The layer path of the layer to change.
The item to change.
The visibility to set.
Should legend layers be updated (here to avoid repeated rerendering when setting all items in layer).
Sets opacity for a layer.
The path of the layer.
The new opacity to use.
OptionalemitOpacityChange: booleanWhether to emit the event or not (false to avoid updating the legend layers)
Show the errors that happened during layers loading. If it's an aggregate error, log and show all of them. If it's a regular error, log and show only that error.
The error to log and show.
The Geoview layer id for which the error happened.
Unregisters the layer in the LayerApi to stop managing it.
The layer entry config to unregister
Should it be unregistered from orderedLayerInfo
StaticconvertConverts a list of map configuration layer entries into an array of promises, each resolving to one or more GeoView layer configuration objects.
The unique identifier of the map instance this configuration applies to.
The language setting used for layer labels and metadata.
The array of layer entries to convert.
Callback invoked when an error occurs during layer processing.
An array of promises, each resolving to an array of TypeGeoviewLayerConfig objects.
StaticconvertConverts a map configuration layer entry into a promise of a GeoView layer configuration.
Depending on the type of the layer entry (e.g., GeoCore, GeoPackage, Shapefile, RCS, or standard GeoView),
this function processes each entry accordingly and wraps the result in a Promise.
Errors encountered during asynchronous operations are handled via a provided callback.
The unique identifier of the map instance this configuration applies to.
The language setting used for layer labels and metadata.
The array of layer entry to convert.
Callback invoked when an error occurs during layer processing.
The promise resolving to a TypeGeoviewLayerConfig object.
StaticgenerateGenerate an array of layer info for the orderedLayerList.
The config to get the info from.
The array of ordered layer info.
A class to get the layer from layer type. Layer type can be esriFeature, esriDynamic and ogcWMS
Exports
LayerApi