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.
Deserialize a JSON to change the list active Dataset
a JSON representation of the active Datasets
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
Request a Dataset with a specific id
a the Dataset
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 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
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
Reset to the initial list of active Dataset
Serialize the current list of active Dataset
a JSON representation of the active Datasets
Change the locale.
Subscribe to auto updating availability status on all active Datasets
The Api is the core component of @dmp/map-components: