2019-02-05 23:41:21 +01:00
---
title: map
2020-10-11 07:02:47 -07:00
label: Map
2019-02-05 23:41:21 +01:00
---
2020-10-11 07:02:47 -07:00
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.
2019-02-05 23:41:21 +01:00
2020-10-11 07:02:47 -07:00
* **Name:** `map`
* **UI:** interactive map
* **Data type:** GeoJSON string
* **Options:**
2019-02-05 23:41:21 +01:00
2020-10-11 07:02:47 -07:00
* `decimals` : accepts a number to specify precision of saved coordinates; defaults to 7 decimals
* `default` : accepts a GeoJSON string containing a single geometry; defaults to an empty string
* `type` : accepts one string value of `Point` , `LineString` or `Polygon` ; defaults to `Point`
* **Example:**
```yaml
- {label: "Location", name: "location", widget: "map" }
```