Skip to content

MapSectionModel

MapSectionModel = object

Defined in: packages/schema/src/model.ts:737

A map of the record’s position, its latitude and longitude fields in decimal degrees (WGS84), centred on a marker at zoom: in the main column under title, or with sidebar as a sidebar card. The app draws it with the map style its server names, and leaves it out without one. See Maps.

kind: "map"

Defined in: packages/schema/src/model.ts:739

A map section.


latitude: string

Defined in: packages/schema/src/model.ts:743

The number field holding the record’s latitude.


longitude: string

Defined in: packages/schema/src/model.ts:745

The number field holding the record’s longitude.


optional sidebar?: true

Defined in: packages/schema/src/model.ts:749

Drawn as a sidebar card instead of in the main column.


title: string

Defined in: packages/schema/src/model.ts:741

The section’s title.


optional when?: ShowWhen

Defined in: packages/schema/src/model.ts:751

Whether it shows on the form, the read view or both.


optional zoom?: number

Defined in: packages/schema/src/model.ts:747

MapLibre’s zoom, from 0 to 22; 15 when omitted.