The JMap layer id
The JMap query id
The form data (values mapping the query form definition)
if group or query ids are not correct (invalid format or no resource exists)
// returns a promise that when resolved returns the result of the search,
// an array of features, for layer id=3 and query id=5.
JMap.Query
.fetchFeatures(3, 5, {
"$PARAM1": "test",
"$PARAM2": 35
})
.then(features => console.info(`Found ${features.length} features.`))
.catch(error => console.error("Error while processing query request.", error))
JMap.Query.fetchFeatures
Process a query request to the JMap server, for given layer and query ids, and provided form data