AbstractConstructs a new LayerSet instance.
The MapViewer instance to work with
The ControllerRegistry instance to work with
The LayerDomain instance to work with
ProtectedcontrollerThe controller registry to work with
ProtectedlayerThe LayerDomain to work with
ProtectedmapThe MapViewer to work with
An object containing the result sets indexed using the layer path
A quick getter to help identify which layerset class the current instance is coming from.
ProtectedgetGets the MapId for the layer set.
The map id
Gets the registered layer paths based on the registered layers.
An array of layer paths
Unregisters a callback from being called whenever the layer set is updated.
The callback function to unregister
Protected AbstractonA must-override method called to delete a result set entry from the store.
The layer path to delete from store
Registers a callback to be executed whenever the layer set is updated.
The callback function
ProtectedonAn overridable layer set updated function for a layer-set to indicate the layer set has been updated.
The layer path
Protected AbstractonA must-override method called to propagate the result set entry to the store.
The result set entry to propagate
The propagation type
ProtectedonAn overridable registration function for a layer-set that the registration process will use to create a new entry in the layer set for a specific geoview layer and layer path.
The layer config
ProtectedonAn overridable registration condition function for a layer-set to check if the registration should happen for a specific geoview layer and layer path. By default, a layer-set always registers layers except when they are group layers.
The layer
True if the layer should be registered, false otherwise
ProtectedonAn overridable registration function for a layer-set that the registration process will use to create a new entry in the layer set for a specific geoview layer and layer path.
The layer config
ProtectedonAn overridable registration condition function for a layer-set to check if the registration should happen for a specific geoview layer and layer path.
The layer config
True if the layer config should be registered, false otherwise
ProtectedonAn overridable unregistration function for a layer-set that the registration process will use to unregister a specific layer config.
The layer config
ProtectedqueryProcesses layer data to query features on it, if the layer path can be queried.
The geoview layer
The query type
The location for the query
Optional whether to query geometry
OptionalabortController: AbortControllerOptional abort controller
A promise that resolves with the query results
Registers the layer in the layer-set.
If the layer is already registered, the function returns immediately.
The layer to register
Registers the layer config in the layer-set.
The layer config
Unregisters the layer config and layer from the layer-set.
The layer path
Protected StaticalignAligns records with information provided by OutFields from layer config.
This will update fields in and delete unwanted fields from the arrayOfRecords.
The layer entry config object
Features to delete fields from
Protected StaticisChecks if the layer is of queryable type based on its class definition.
The layer
True if the layer is of queryable type
Protected StaticisChecks if the layer config source is queryable.
The layer
True if the source is queryable or undefined
Protected StaticrecordsDetermines whether the retrieved feature info records contain real attribute fields
(i.e., key-value properties) or whether they were returned in a fallback
HTML/plain-text form, which commonly occurs with WMS GetFeatureInfo responses.
This is used primarily to detect when a WMS service cannot return structured
feature attributes and instead provides the feature data as a single HTML or
plain-text block.
Logic summary:
OgcWmsLayerEntryConfig):
html or plain_text, the method considers the response not
to contain actual fields.The layer configuration used to determine whether special WMS handling applies
The retrieved feature info entries representing attributes or raw text content
true if the feature info records contain real attribute fields;
false if they consist only of fallback HTML or plain-text content
A class to hold a set of layers associated with a value of any type.
Layers are added/removed to the layer-set via the registerOrUnregisterLayer function.