SMK Usage Guide

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

This project is maintained by qqnluaq

SMK / Configuration / Layers / Query / Predicate

Layer Query Predicate Starts With Operator

The query predicate holds if the first operand starts with the second operand. There must be exactly 2 arguments.

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

{
    "operator":  "starts-with",
    "arguments": [ ... ],
}

Arguments Property

"arguments": Array

Defines the arguments for a predicate that takes exactly 2 operands.

The arguments have 2 possible types. The first type is an "attribute" operand, where the "name" property is the name of an attribute in the layer. This attribute will be used as part of the predicate expresion.

{
    "operand": "attribute",
    "name":    "..."
}

The second type is an "parameter" operand, where the "id" property is the id from the "parameters" property. This parameter will be used as part of the predicate expression.

{
    "operand": "parameter",
    "id":      "..."
}