Skip to content
โ—‡ AirawatOS Developer
๐Ÿšง Under development โ€” this portal is being built track by track. Content will keep growing, and some sections are still placeholders.

Reference

โ† Schema catalogue

viz.layer

domain: viz

A RENDER descriptor: how to render objects of one schema. Generalized from a map-layer catalog (v0.1) to any render kind (v0.2) โ€” map | form | card | table | timeline โ€” so every surface (Explorer, the inbox drawer, the case view) is a GENERIC renderer that looks up the viz.layer for an object's source_schema. What's shown is data, not hardcoded. (Clean version of the AirOS LayerDef.)

FieldTypeRequiredDescription
schemaโ€”โœ“
idstringโœ“
layer_idstringโœ“stable slug, e.g. terrain-elevation or case-timeline
labelstringโœ“
short_labelstring
categorystring
ordernumbersort order in a layer/list
source_schemastringโœ“the registry schema this renders (e.g. geo.terrain, platform.case)
renderstringโœ“how to render an object of source_schema
value_fieldstring[map] dotted path to the numeric value inside a fact (e.g. elevation_m)
unitstring
color_scalestring[map] colour ramp
higher_is_worseboolean[map] high values read as bad (flips the legend sense)
filtersobjectextra equality filters merged into the layer query
title_fieldstring[card/form/table] dotted path used as the object's title
subtitle_fieldstring[card] dotted path used as the subtitle
fieldsarray<object>[card/form] the fields to show/edit, in order
columnsarray<object>[table] the columns, in order
event_pathstring[timeline] dotted path to the event array inside the object (e.g. history)
event_fieldsobject[timeline] which event keys map to at/label/actor/ref
descriptionstring
interpretationstringone line on how to read the layer
enabledboolean