A versatile and lightweight toolkit for building a simple web map.
This project is maintained by bcgov
This object defines a query template for a layer.
This query object must associated with an instance of the "query"
tool, which will gather the values of parameters (if any) from the user, run the query, and then display the results.
The "id"
property must be unique within the layer, and is used to construct the "instance"
property for the "query"
tool.
Any parameters required for the query are defined in the "parameters"
property. Any constant values that the query needs are defined here too.
The parameters are refered to as arguments of predicate objects that are defined in the "predicate"
property.
A query object is defined with these properties. Click on a property name for more information:
{ "id": null, "title": null, "description": null, "parameters": null, "predicate": null }
"id": String
The unique identifier for the query.
This MUST be unique within the layer query list.
Conventionally it is all lowercase with -
separating words.
"title": String
The title for the query, that will be uses for the "query"
tool.
"description": String
A longer description of the query, that is shown on the panel above the query parameter form.
"parameters": Array
An array of layer query parameter objects. Used to define the parameters that the user must provide the query.
"predicate": Object
A layer query predicate object. Used to define the query that is to be executed against the layer.