> For the complete documentation index, see [llms.txt](https://docs.jmapcloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jmapcloud.io/en/jmap-ng/jmap-ng-user-guide/fonctions/editing-data/editing-layer-data.md).

# Editing Layer Data

You can create, modify, or delete features in vector layers. You must have specific permissions for each type of editing in order for the corresponding functions to be enabled.

## Creating a Feature

1. Click <img src="/files/uWSGCiKjezuKKnXHJwnF" alt="" data-size="line"> in the map interface. The **Select the type of feature to create** panel is displayed along with its icon <img src="/files/semZD8Vb1jdftwtnwee6" alt="" data-size="line"> in the sidebar. This panel lists all layers for which you have the right to create a feature.

   <figure><img src="/files/6cDpilttW4BFqj8bdVli" alt=""><figcaption></figcaption></figure>
2. Click the layer of your choice to select it, then click **Next** to open the **Create Geometry** panel.
3. Create the feature's geometry according to its type. The table below details the procedure for each geometry type.\
   You can activate the [snap](/en/jmap-ng/jmap-ng-user-guide/fonctions/measuring-distances-and-areas.md#snap-tool) tool and select the layer to snap the features you are creating.

   <table data-header-hidden><thead><tr><th width="112.58203125" valign="top">Geometry</th><th valign="top">Procedure</th></tr></thead><tbody><tr><td valign="top"><strong>Point</strong></td><td valign="top">1. Click at the desired location to place the point. A marker indicates its position. <br>2. To modify its location, click on it and move it to the desired position.</td></tr><tr><td valign="top"><strong>Line</strong></td><td valign="top">1. Click at the desired location to place the first point. <br>2. Click at other locations to add vertices. <br>3. Double-click to finish the line. <br>4. To modify the line, click on a vertex (it turns yellow) and move it. New vertices are added to allow more precise adjustments. <br>5. Repeat until you obtain the desired geometry.</td></tr><tr><td valign="top"><strong>Polygon</strong></td><td valign="top">1. Click at the desired location to place the first vertex. <br>2. Click to add the subsequent vertices. <br>3. Double-click to finish the polygon. <br>4. To modify the polygon, click on a vertex (it turns yellow) and move it. <br>5. Repeat until you obtain the desired geometry.</td></tr></tbody></table>
4. Click **Next** to open the feature attribute entry form and, if permitted, attach documents. See the [Form](#form) section for details.

   <figure><img src="/files/t6RRfQl1H3Drdv1xirUy" alt=""><figcaption></figcaption></figure>
5. Click **Create** to finalize the creation of the feature. It appears on the map and the **Select the type of feature to create** panel closes automatically.

### Form

The data entry and modification form for a layer can include several components:

1. **Layer attributes**: Fields to fill in to describe the feature.
2. **Sub-form**: Table containing records associated with the feature.
3. **Attachments**: Section allowing you to associate documents with the feature.

<figure><img src="/files/F7OwLoDtIXM9MSh7MkUq" alt=""><figcaption></figcaption></figure>

#### Layer attributes

Attributes can be:

* **Required (\*)**: The form cannot be saved without a value being assigned to them.
* **Read-only**: These attributes cannot be modified.

The accepted value types are: alphanumeric (text or number), date, and boolean (true/false).

Input methods may vary: text or number field, single or multiple choice dropdown list, checkbox, or toggle.

#### Sub-form

A layer can have non-spatial tabular data associated with its features. For example, a point layer representing air quality monitoring stations can be associated with a table containing records of pollutant concentrations measured at different dates.

A sub-form allows you to add, modify, or delete data in this associated table. When creating a feature, you can fill in the sub-form immediately or later, when [modifying the feature](#modify-a-feature). If you have the required permissions, the icons associated with the sub-form are enabled.

**To add a record**

1. Click <img src="/files/B6CGzC1fEjxI4UG7euHE" alt="" data-size="line"> to open the table form.
2. Enter the values in the form fields.
3. Click **Create**. The record appears in the table once the feature is created.

**To modify a record**

1. Click <img src="/files/LxRyi9XZdCQgZ2hRsrLc" alt="" data-size="line"> to open the table form.
2. Modify the values of the desired fields.
3. Click **Update**. The new values are displayed in the sub-form.

**To delete one or more records**

1. Check the boxes of the records to delete.
2. Click <img src="/files/vIsM75zu0iGKUgHzcXT8" alt="" data-size="line">. A confirmation message is displayed.

#### Attachments

You can attach documents (images, PDFs, Word, Excel, etc.) or URLs if the form has a dedicated section for this purpose. If you have the required permission, the icon for this section is enabled.

{% hint style="info" %}
Document size must not exceed 20 MB.
{% endhint %}

**To attach a document**

1. Click <img src="/files/2yiob9IE1JTNFPySfTcU" alt="" data-size="line"> to open the file drop or URL entry window.
2. Enter the **Subject** and **Description** of the attachments. Documents are grouped by subject.
3. Click **Save**. The attachments are displayed in the form.

## Modifying a Feature

You can modify a feature in an editable layer if you have the necessary permissions:

1. Click on the desired feature to display its popup. If the layer is editable and you have the required permissions, the edit icon <img src="/files/LxRyi9XZdCQgZ2hRsrLc" alt="" data-size="line"> is displayed in the popup.

   <figure><img src="/files/nbofmL1djGFI20ThbJq8" alt=""><figcaption></figcaption></figure>
2. Click  <img src="/files/LxRyi9XZdCQgZ2hRsrLc" alt="" data-size="line"> to edit the feature. A window appears with the options available based on your permissions: **Modify geometry**, **Modify information**, or **Delete**.
3. Select the desired type of modification.

### Editing Geometry

1. Click **Edit geometry**, then click on the feature to select it. The vertices of lines and polygons are displayed.
2. To move the feature, drag and drop it to the desired location.
3. To modify the shape, click on a vertex to select it and move it. New vertices are created between existing vertices to allow more precise adjustments.

   <figure><img src="/files/pDSrhexNv5yWZQJznH4C" alt=""><figcaption></figcaption></figure>
4. Click **Save** to save the changes.

### Editing Information

1. Click **Edit information** to display the form.
2. Modify the attribute values as needed.
3. If needed, modify the sub-form as described in the [Sub-form](#sub-form) section.
4. If needed, add, view, or modify attachments (see the [Viewing and Modifying Attachments](#view-and-manage-attachments) section).
5. Click **Update** to save the changes.

### Viewing and Modifying Attachments

If the feature's form contains associated documents, you can view and manage them. Management icons appear when hovering over the document:

* Click <img src="/files/cjMDrERfA6qoMjpH7DrW" alt="" data-size="line"> to modify the document's information.
* Click <img src="/files/t7qq6rK5FYNY3fd3m1BF" alt="" data-size="line"> to delete the document.

**To view documents**

* Click on a photo or image to enlarge it and display its subject and description.
* Use <img src="/files/ecLj132ofTSunJjTXx9i" alt="" data-size="line"> to zoom in or out.
* Click <img src="/files/lJRxU60yqXCjZPM5jJhT" alt="" data-size="line"> to download the photo to your computer.
* Click <img src="/files/qGISEcz8wK4p6zjxUdTF" alt="" data-size="line"> to switch to panoramic (3D) display mode.
* Click <img src="/files/sqFk4PHnfl1AUA00FtkD" alt="" data-size="line"> to display the photo in full-screen mode.
* Click <img src="/files/K15E3LwklUM8P7LRqnos" alt="" data-size="line"> to exit full-screen mode.
* Click <img src="/files/hCoTzSjI0KmDFV30vLR7" alt="" data-size="line"> to close the photo.

## Deleting a Feature

1. Click **Delete** to delete the selected feature. A confirmation message is displayed.
2. Click **OK**. The feature is deleted from the layer.
