Entry types
entry.type selects the method which renders the entry. An unknown type logs an error and is skipped.[1]
type | Shows | Type keys |
|---|---|---|
text (default) | The value as text | prefix, suffix |
textarea, html | Multi-line text; html renders HTML | |
numeric, integer | A number formatted for the locale | formatterParams, prefix, suffix, min, max, step |
date, datetime, time | A date, date and time, or time | |
boolean | A checkbox | label |
title | A heading row without value | title, css_title |
key | The layer name; toggles the layer | hideLayer |
pin | A marker at the location | display, style, zIndex, srid, label |
geometry | A geometry from a field, shown on the map | display, style, srid, label; see editing |
link | A link opening a new window | url, label, icon_name |
pills | An array value as pills | pills |
json | A JSON editor | |
tab | A tab in a tabview | target, label, dynamic, disabled, disableTabClose, hideTabClose |
dataview | A table or chart from a query | target, query, display, tab_style and the tab keys; see dataviews |
layer | A layer derived from the location | layer, data, query, display, style |
query_button | A button which runs a query | query, queryparams, label, alert, reload, dependents |
image, images, documents | Uploads to Cloudinary | cloudinary_folder, max_size |
ping | A textarea with the responses of the ping utility, for testing |
Notes
numericformats withformatterParams, the options ofNumber.toLocaleString, eg.{ "maximumFractionDigits": 1 }.layerclones the locale layer named inlayerand 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 itsquery. The legacy typesmvt_cloneandvector_layerare mapped tolayerwith a warning.query_buttonrunsqueryand then reloads thedependentsfields of the location; see editing.- Aliases share one method:
datetime→date,html→textarea,integer→numeric,image,images,documents→ Cloudinary.reportis a legacy alias forlink;defaultsis deprecated and does nothing.[1:1] minandmaxbound the numeric edit input and fix the bounds of the entry's range filter;steponly applies to the filter, see editing and entry filters.- A
tabentry sets its owntab_stylefrom the location colour; onlydataviewentries 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"
}
]
}
}
}
}