The constructor creates a api object to use in components like a layer control or to add to a map.
contains the initial settings for the API.
Get a collection of active Dataset. The order defines the rendering order in the map and ind the layerswitch
Change the collection of active Dataset. The order defines the rendering order in the map and ind the layerswitch
Get the current locale.
Add a local Dataset and use it like any other dataset. The dataset will not be stored or persisted in any form
a JSON representation of the Dataset with recursively partial properties
Exclude a Dataset from the session. The dataset will only be removed locally until page reload. The next time a method on this api is called, the dataset will be excluded. If the dataset is part of the activeDatasts collection, then it will be removed from that list.
the ID of the Dataset that should be excluded
Deserialize a JSON to change the list active Dataset
a JSON representation of the active Datasets
Get the backend version.
Find Dataset Collections by text. Match text in id, title, description and tags.
String containing the
OptionaldatasetCollections: DatasetCollection[]Default is all datasetCollections
Optionaloptions: IFuseOptions<DatasetCollection>Options for the search
a list of datasetCollections matching the search string and ordered by best match
Find Dataset Owners by text. Match text in id, title, description and tags.
String containing the
Optionalowners: Organization[]Default is all Owners
Optionaloptions: IFuseOptions<Organization>Options for the search
a list of Dataset Owners matching the search string and ordered by best match
Find datasets by text. Match text in id, title, description, owners, category and tags.
String containing the
Optionaldatasets: (Dataset | DatasetGroup)[]Default is the current active and visible datasets
Optionaloptions: IFuseOptions<Dataset | DatasetGroup>Options for the search
a list of dataset matching the search string and ordered by best match
Get all DatasetCollections related to any previously fetched Dataset
Request a DatasetGroup with a specific id
A DatasetGroup ID
OptionalincludeAttributes: booleanInclude all the details of a Dataset like wfsSource attributes and more
Optionalreload: booleanOmit the client cache
a the DatasetGroup
Get all DatasetGroups related to any previously fetched Dataset
Request a list of all Dataset using a filter
Optionalfilter: stringto get a list of available Dataset see syntax at https://www.jsonapi.net/usage/reading/filtering.html
Optionalreload: booleanOmit the client cache
a collection of Datasets
Get an OpenLayes colllection of the active Datasets to add for the map.
a OpenLayers LayerGroup
Get all Organizations related to any previously fetched Dataset
Get all owners (Organizations) related to any previously fetched Dataset
Is the api currently loading a DatasetState.
Load an initial list of active Dataset
OptionaldatasetState: DatasetState[]a JSON representation of the active Datasets
Remove a listen from an event
returned by the on method
Listen to an event
Name of the event
When the event is triggered
A listener that can be used for removing the listener
Query a list of Dataset with a Filter
An OpenLayers Filter to query with
Optionaldatasets: (Dataset | DatasetGroup)[]Default is the current active and visible datasets
Optionaloptions: number | QueryOptionsUse QueryOptions.QueryOptions.limit and not the legacy number as limit
a list of queried dataset with the related hits
Query a list of Dataset with a coordinate
The coordinate to query with
Optionaldatasets: (Dataset | DatasetGroup)[]Default is the current active and visible datasets
Optionaloptions: QueryOptionsOptions for the query
a list of queried dataset with the related hits
Query a list of Dataset with an extent
The bounding box to query with
Optionaldatasets: (Dataset | DatasetGroup)[]Default is the current active and visible datasets
Optionaloptions: QueryOptionsOptions for the query
a list of queried dataset with the related hits
Query a list of Dataset with a geometry
An OpenLayers Geometry to query with
Optionaldatasets: (Dataset | DatasetGroup)[]Default is the current active and visible datasets
Optionaloptions: number | QueryOptionsUse QueryOptions.limit and not the legacy number as limit
a list of queried dataset with the related hits
Query a Dataset for a specific feature using id
A ID of a Feature from the Dataset
The Dataset to query
a list of queried dataset with the related hit
Remove a Dataset from the exclution list. The next time a method on this api is called, the dataset will NOT be excluded.
the ID of the Dataset that should be removed from the exclution list
Reset to the initial list of active Dataset
Find Datasets, Dataset Collections or Organizations by text.
OptionalsearchMethod: "client" | "ai"'ai' (default) or 'client' as search method where 'ai' is using a AI based search engine and 'client' is a client side text search on multiple fields
a list of Datasets, Dataset Collections or Organizations matching the search string and ordered by best match
Serialize the current list of active Dataset
a JSON representation of the active Datasets
Subscribe to auto updating availability status on all active Datasets
Subscribe to auto updating availability status on all currently fetched Datasets
The Api is the core component of @dmp/map-components: