SMK Usage Guide

A versatile and lightweight toolkit for building a simple web map.

This project is maintained by qqnluaq

SMK / Configuration / Layers / Query / Parameter

Constant Layer Query Parameter

Use a constant parameter to provide a constant value to the query predicate. If the "title" property is configured, then the constant is shown in query form, otherwise it is hidden.

A parameter object is defined with these properties. Click on a property name for more information:

{
    "type":  "constant",
    "id":    null,
    "title": null,
    "value": null
}

Type Property

"type": String

The type of parameter object.

Must be one of these values: "constant", "input", "select", or "select-unique".

Id Property

"id": String

The unique identifier for the parameter. This MUST be unique within the layer query parameter list. Conventionally it is all lowercase with - separating words.

Title Property

"title": String

The title to show in query form for this parameter.

Value Property

"value": String

The default value for the parameter. If not provided, the user MUST provide a value to execute the query.