1. Home
  2. Docs
  3. docs
  4. Widgets
  5. Map

Map

  • Name: map
  • UI: Interactive map
  • Data type: `GeoJSON string“

The map widget allows you to edit spatial data using an interactive map. Spatial data for a single piece of geometry saves as a GeoJSON string in WGS84 projection.

Widget Options

For common options, see Common widget options.

Name

Type

Default

Description

default

string

''

Optional. The default value for the field. Accepts a GeoJSON string containing a single geometry

decimals

number

7

Optional. Precision of saved coordinates

type

‘Point’
| ‘LineString’
| ‘Polygon’

'Point'

Optional. Data type

height

string

'400px'

Optional. Height of map element

name: location
label: Location
widget: map
name: 'location',
label: 'Location',
widget: 'map',