2022-09-30 11:39:35 -04:00
---
2022-10-25 09:18:18 -04:00
group: Widgets
title: Map
weight: 18
2022-09-30 11:39:35 -04:00
---
2022-11-02 15:42:21 -04:00
## Overview
- **Name:** `map`
- **UI:** Interactive map
- **Data type:** `GeoJSON string``
2022-09-30 11:39:35 -04: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.
2022-11-02 15:42:21 -04:00
## Widget options
For common options, see [Common widget options](/docs/widgets#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 |
| default | 'Point'<br />\| 'LineString'<br />\| 'Polygon' | `'Point'` | _Optional_. Data type |
2022-09-30 11:39:35 -04:00
2022-11-02 15:42:21 -04:00
## Example
2022-09-30 11:39:35 -04:00
2022-11-02 15:42:21 -04:00
```yaml
name: location
label: Location
widget: map
```