Reference
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.)
| Field | Type | Required | Description |
|---|---|---|---|
schema | โ | โ | |
id | string | โ | |
layer_id | string | โ | stable slug, e.g. terrain-elevation or case-timeline |
label | string | โ | |
short_label | string | ||
category | string | ||
order | number | sort order in a layer/list | |
source_schema | string | โ | the registry schema this renders (e.g. geo.terrain, platform.case) |
render | string | โ | how to render an object of source_schema |
value_field | string | [map] dotted path to the numeric value inside a fact (e.g. elevation_m) | |
unit | string | ||
color_scale | string | [map] colour ramp | |
higher_is_worse | boolean | [map] high values read as bad (flips the legend sense) | |
filters | object | extra equality filters merged into the layer query | |
title_field | string | [card/form/table] dotted path used as the object's title | |
subtitle_field | string | [card] dotted path used as the subtitle | |
fields | array<object> | [card/form] the fields to show/edit, in order | |
columns | array<object> | [table] the columns, in order | |
event_path | string | [timeline] dotted path to the event array inside the object (e.g. history) | |
event_fields | object | [timeline] which event keys map to at/label/actor/ref | |
description | string | ||
interpretation | string | one line on how to read the layer | |
enabled | boolean |