# Edit Layer Data

You can create, modify, or delete features in vector layers.

You must have specific permissions for each type of editing operation in order for the corresponding functions to be enabled.

## Create a Feature

To create a new feature:

1. Click the Create a new feature <img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2FXmjQfbu4QxudYGxZ247O%2Fajouter-element.png?alt=media&#x26;token=8f6a5d51-f976-4e5d-a82b-6809d342475e" alt="" data-size="line"> button in the map interface. The **Select the feature type to create** panel opens, and the corresponding icon <img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2FhZL1wCgczqJdDx2c6nDs%2Fpanneau-edition.png?alt=media&#x26;token=9a1ba228-cc18-492b-8241-246ab5ef4d74" alt="" data-size="line"> appears in the sidebar.\
   This panel lists all layers for which you have permission to create a feature.

   <figure><img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2F7n941BkG7YH5eWrbszw3%2Fclip043EN.png?alt=media&#x26;token=0b119564-799c-481b-99d4-63304c9e8a87" alt=""><figcaption></figcaption></figure>
2. Click the desired layer to select it, then click **Next** to open the **Create Geometry** panel.
3. Create the feature geometry according to its type. You can enable the [Snap](https://docs.jmapcloud.io/en/jmap-ng/jmap-ng-user-guide/measure-distances-and-areas#snap-tool) tool and select the layer to which newly created features will snap.

   <table data-header-hidden><thead><tr><th width="122.38671875" valign="top">Geometry</th><th>Process</th></tr></thead><tbody><tr><td valign="top"><strong>Point</strong></td><td>1. Click the desired location to place the point. <br>2. To reposition it, click and drag it to a new location.</td></tr><tr><td valign="top"><strong>Line</strong></td><td>1. Click to place the first point.<br>2. Click additional locations to add vertices. <br>3. Double-click to complete the line.<br>4. To modify it, click a vertex (it becomes highlighted) and drag it. Additional vertices appear between existing ones for finer adjustments.</td></tr><tr><td valign="top"><strong>Polygon</strong></td><td>1. Click to place the first vertex.<br>2. Click to add additional vertices.<br>3. Double-click to complete the polygon. <br>4. To modify it, click a vertex and drag it. Additional vertices appear for more precise adjustments.</td></tr></tbody></table>
4. Click **Next** to open the feature attribute form and, if permitted, attach documents. See the [Form](#form) section for details.

   <figure><img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2FpmfclzmqR7GkJll2einy%2Fclip044EN.png?alt=media&#x26;token=c34f609f-e549-436e-abd1-728078ac4931" alt=""><figcaption></figcaption></figure>
5. Click **Create** to finalize the feature. The feature appears on the map, and the **Select the feature type to create** panel closes automatically.

### Form

The data entry and editing form for a layer may include several components:

* **Layer Attributes (1)** – Fields used to describe the feature
* **Subform (2)** – Table containing records associated with the feature
* **Attachments (3)** – Section used to associate documents with the feature

<figure><img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2FnofEnb3qlcHN1bEZorRf%2Fclip051EN.png?alt=media&#x26;token=cd3b5a8b-6c3a-4dd9-9304-cbec446b5717" alt=""><figcaption></figcaption></figure>

#### Layer Attributes

Attributes may be:

* **Required (\*)** – The form cannot be saved without a value.
* **Read-only** – These attributes cannot be modified.

Accepted value types include:

* Alphanumeric (text or number)
* Date
* Boolean (true/false)

Input methods may vary:

* Text or numeric fields
* Single- or multi-select dropdown lists
* Checkboxes or toggle switches

#### Subform

A layer may have non-spatial tabular data associated with its features.

For example, a point layer representing air quality monitoring stations may be associated with a table containing pollutant concentration records measured on different dates.

The subform allows you to add, modify, or delete records in the associated table. When creating a feature, you can complete the subform immediately or later when [editing the feature](#modify-a-feature). If you have the required permissions, the subform icons are enabled.

**Add a record**

1. Click the Add icon <img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2FcVG2I6WwMH4gpmZX0jkh%2Ftable-add.png?alt=media&#x26;token=3cb152d8-c412-4d84-b9fd-cd0f30ce8288" 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.

**Edit a record**

1. Click the Edit icon <img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2Fx0kzdAefG1mjGc22sMcw%2Fedit.png?alt=media&#x26;token=fc0bab7b-01fc-47c9-8463-e243d58aa971" alt="" data-size="line"> to open the table form.
2. Modify the desired field values.
3. Click **Update**. The new values appear in the subform.

**Delete records**

1. Select the records to delete.
2. Click the Delete icon<img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2Fzu5Ou1xO7UCW23a4Q7wl%2Ftable-supprimer.png?alt=media&#x26;token=f7a3a78f-ad07-4194-ac0c-d773cd33e833" alt="" data-size="line">. A confirmation message appears.

#### Attachments

If the form includes an attachment section and you have the required permissions, you can attach documents (images, PDF, Word, Excel files, etc.) or URLs.

{% hint style="info" %}
The maximum file size is 20 MB.
{% endhint %}

**Add an Attachment**

1. Click the Add icon <img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2FXmjQfbu4QxudYGxZ247O%2Fajouter-element.png?alt=media&#x26;token=8f6a5d51-f976-4e5d-a82b-6809d342475e" alt="" data-size="line"> to open the file upload or URL entry window.
2. Enter the **Subject** and **Description**. Attachments are grouped by subject.
3. Click **Save**. The attachments appear in the form.

## Modify a Feature

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

1. Click the feature to display its tooltip. If the layer is editable and you have the required permissions, the Edit icon <img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2Fx0kzdAefG1mjGc22sMcw%2Fedit.png?alt=media&#x26;token=fc0bab7b-01fc-47c9-8463-e243d58aa971" alt="" data-size="line"> appears in the tooltip.<br>

   <figure><img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2F4ekuxgkIjeIVhzComGAt%2Fclip045EN.png?alt=media&#x26;token=2aaa24f2-b8af-40b7-86f0-3e676bf036b0" alt=""><figcaption></figcaption></figure>
2. Click the Edit icon <img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2Fx0kzdAefG1mjGc22sMcw%2Fedit.png?alt=media&#x26;token=fc0bab7b-01fc-47c9-8463-e243d58aa971" alt="" data-size="line">. A window opens with the available options based on your permissions:
   * **Edit Geometry**
   * **Edit Information**
   * **Delete**
3. Select the desired type of modification.

### Edit Geometry

1. Click **Edit Geometry**, then click the feature to select it. The vertices of lines and polygons appear.
2. To move the feature, drag and drop it to the desired location.
3. To modify its shape, click a vertex and drag it. Additional vertices appear between existing ones for finer adjustments.

   <figure><img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2FMmSURYaEFW4gwLqW2Srv%2Fclip046EN.png?alt=media&#x26;token=828309a3-4521-47cf-9800-5a2353dbdbb4" alt=""><figcaption></figcaption></figure>
4. Click **Save** to apply the changes.

### Edit Information

1. Click **Edit Information** to open the form.
2. Modify the attribute values as needed.
3. If required, edit the subform as described in the [Subform](#subform) section.
4. Add, view, or modify attachments as needed (see the [View and Manage Attachments](#view-and-manage-attachments) section).
5. Click **Update** to save the changes.

#### View and Manage Attachments

If a feature form contains associated documents, you can view and manage them. Management icons appear when you hover over a document.

* Click the Edit icon <img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2FSWlmzRHV46SUXAFj32Fx%2Fattachment-edit.png?alt=media&#x26;token=c6f75608-305a-48da-a213-d0e927e40427" alt="" data-size="line"> to modify document information.
* Click the Delete icon <img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2FdwknBcmRG3arXBKgd5q2%2Fattachment-close.png?alt=media&#x26;token=8c089762-94e2-4579-84fe-5a61d20a0487" alt="" data-size="line"> to remove the document.

To view documents:

* Click a photo or image to enlarge it and display its subject and description.
* Use the zoom controls <img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2F9W449T7xNH4KZ6JJQK6D%2Fzoominout.png?alt=media&#x26;token=97cf40c6-f507-47e3-956d-357815443369" alt="" data-size="line"> to zoom in or out.
* Click the Download icon <img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2Fz41WTgq3gco2txLZUyUW%2Fte%CC%81le%CC%81charger.png?alt=media&#x26;token=9e584d48-aa36-4389-ac64-5e02670978b0" alt="" data-size="line"> to download the file.
* Click the Panoramic icon <img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2FZuG1yXoVBoVlqGycXpxd%2Fpanoramique.png?alt=media&#x26;token=288b3441-e842-4ea9-8f96-a76987a919b2" alt="" data-size="line"> to switch to panoramic mode (if available).
* Click the Full Screen icon <img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2Frz7H2uFzTmI3dMMR3ab5%2Fpleinecran.png?alt=media&#x26;token=2b793d5e-9600-4480-bd33-cba8223b082d" alt="" data-size="line"> to display the image in full-screen mode.
* Click the Exit Full Screen icon <img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2FPms0e3E9cIFdFFWHGyc4%2Fsortirpleinecran.png?alt=media&#x26;token=eb98a27b-d85a-44cf-8c46-e041572dd129" alt="" data-size="line"> to return to the previous view.
* Click the Close icon <img src="https://3291879974-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9n1KCuTyIKwSpZcPcC6l%2Fuploads%2FRGx4VT0PZ40UTbcIelwo%2Ffermer-infobulle.png?alt=media&#x26;token=75ce47d7-c8af-406e-8f7e-e863adb9cd9f" alt="" data-size="line"> to close the image.

## Delete a Feature

1. Click **Delete** in the feature editing window. A confirmation message appears.
2. Click **OK**. The feature is removed from the layer.
