Skip to content

Entry types ​

entry.type selects the method which renders the entry. An unknown type logs an error and is skipped.[1]

typeShowsType keys
text (default)The value as textprefix, suffix
textarea, htmlMulti-line text; html renders HTML
numeric, integerA number formatted for the localeformatterParams, prefix, suffix, min, max, step
date, datetime, timeA date, date and time, or time
booleanA checkboxlabel
titleA heading row without valuetitle, css_title
keyThe layer name; toggles the layerhideLayer
pinA marker at the locationdisplay, style, zIndex, srid, label
geometryA geometry from a field, shown on the mapdisplay, style, srid, label; see editing
linkA link opening a new windowurl, label, icon_name
pillsAn array value as pillspills
jsonA JSON editor
tabA tab in a tabviewtarget, label, dynamic, disabled, disableTabClose, hideTabClose
dataviewA table or chart from a querytarget, query, display, tab_style and the tab keys; see dataviews
layerA layer derived from the locationlayer, data, query, display, style
query_buttonA button which runs a queryquery, queryparams, label, alert, reload, dependents
image, images, documentsUploads to Cloudinarycloudinary_folder, max_size
pingA textarea with the responses of the ping utility, for testing

Notes ​

  • numeric formats with formatterParams, the options of Number.toLocaleString, eg. { "maximumFractionDigits": 1 }.
  • layer clones the locale layer named in layer and applies the entry's keys to it, so the location can show related features, eg. a catchment. Its data comes from the entry value, data, or its query. The legacy types mvt_clone and vector_layer are mapped to layer with a warning.
  • query_button runs query and then reloads the dependents fields of the location; see editing.
  • Aliases share one method: datetime → date, html → textarea, integer → numeric, image, images, documents → Cloudinary. report is a legacy alias for link; defaults is deprecated and does nothing.[1:1]
  • min and max bound the numeric edit input and fix the bounds of the entry's range filter; step only applies to the filter, see editing and entry filters.
  • A tab entry sets its own tab_style from the location colour; only dataview entries keep a configured one.
  • Uploads need the Cloudinary environment configuration of the instance.

Examples ​

Numeric, boolean, title and link entries on the retail points.

json
{
  "dbs": "DEVDB",
  "locale": {
    "layers": {
      "retail_points": {
        "display": true,
        "format": "wkt",
        "table": "geodata.uk_glx_open_retail_points",
        "geom": "geom_p_4326",
        "srid": "4326",
        "qID": "id",
        "infoj": [
          { "type": "key" },
          { "type": "title", "title": "Store" },
          { "title": "ID", "field": "id", "type": "integer", "inline": true },
          { "title": "Opened", "field": "open_date", "type": "date" },
          {
            "type": "link",
            "label": "Search the web",
            "url": "https://duckduckgo.com/?q=grocery"
          }
        ]
      }
    }
  }
}

  1. ui locations/infoj.mjs and entries/_entries.mjs ↩︎ ↩︎

XYZ v5.1.0. Generated from knowledge/ at dd7a6fa27736502733499c1bf485f15659b10338. Concepts marked draft are not reviewed.