JMap.Application.Query.activateQuery
Activates a query by id and group id.
It displays the query form (replacing the list of queries) in the query panel.
the query group id
the query id
JMap.Application.Query.clearDefaultData
Resets the current query form data.
If there is no active form, does nothing.
JMap.Application.Query.deactivateQuery
Deactivatea the current query. If no query is active, does nothing.
If a query form is active (= its form is displayed), hidea it and returns to the query list.
JMap.Application.Query.displayInDialog
By default, the query form is displayed in the left panel with a simple layout, one field per line.
But it is possible to display it in a modal window, with the layout defined in the project.
true in modal window, false in left panel
JMap.Application.Query.getDefaultData
Returns the current query form data.
If there is no active form, warns in the console and returns an empty object {}.
JMap.Application.Query.processQuery
Processes the active query form with the given values.
Throws if no query is active.
Resolves only if some features are found.
If features are found, makes the layer selectable and visible if needed, then selects and zooms on found features.
If no feature is found, the Promise rejects with a human readable error in the current user's locale.
JMap.Application.Query.setDefaultData
Sets active query form data. If there is no active form, this function throws.
the form data, depends on the form
JMap.Application.Query
You can manage everything related to query here.