1.24. How to edit data
1.24.1. How to set up editing permission
By default, Web Map editing is always disabled. In order for the user to be able to make changes to the layers on the map, editing must be enabled in the Web Map settings. You can change permission for editing in “Update resource” dialog of a Web Map. You can find how to enter it in Update resource of NextGIS Web documentation. You can allow or deny editing of all map layers on the “Settings” tab by ticking or clearing a box next to “Enable layers editing” field (see Pic. 5.126.):
By default a box next to “Enable layers editing” field is clear.
To forbid some users to edit layers add a rule to deny specified users or groups of users to write data (permission
"Resource:Modify") on the “Permissions” tab of the “Update resorce” dialog (see Pic. 5.127.). For user without permission the edit mode is unavailable.
1.24.2. Edit a feature on a Web Map
Open Web Map and select the layer with the feature you need to edit.
Open dropdown menu by pressing the “Layer” button (see Pic. 5.131.), then tick the box next to “Editing”.
Editing toolbar will appear on the Web Map (see Pic. 5.132.):
220.127.116.11. Create a new feature (point, line, polygon)
On the editing toolbar activate “Create features” button (see Pic. 5.133.):
A blue circle will appear nearby a mouse pointer, with it you can add new features. Click on the map to create a new feature. You can add several new features one after another. While creating a line you need to indicate its start and end points by clicking on the map. While creating a polygon each new click on the map will indicate its new vertice, to finish a polygon you need to click on its start point. You can use adhesion while creating vertices.
To finish creation of the new feature press “Layer” button (see Pic. 5.131.) and clear the tick box next to “Editing”.
In the opened dialog select “Save” to save changes, “Don’t save” to discard them, or “Cancel” to stay in the edit mode:
18.104.22.168. Delete a feature
On the editing toolbar activate “Delete features” button (see Pic. 5.135.):
Features you can modify will reduce their color intensity and have a blue outline. The pointer will become a black cross.
Left-click to select the features you would like to delete.
22.214.171.124. Modify a feature
On the editing toolbar activate “Modify features” button (pencil icon, see Pic. 5.137.):
Features you can modify will reduce their color intensity.
Select a feature (point) or one of its vertices (line, polygon) with the pointer and drag it, then release on a new place. For vertices modifying an adhesion will work.
Press “Layer” button (see Pic. 5.131.) and clear the tick box next to “Editing”.
In the opened dialog select “Save” (see Pic. 5.134.).
You can edit several layers simultaneously. To do it enter the edit mode in every layer you want to edit. Adhesion will work for features of all these layers.
1.24.3. Edit feature’s attributes
126.96.36.199. Edit attributes using Feature table
Select admin console;on the right side of Web GIS
In the opened dialog window select a feature you want to edit (if necessary search it by its attributes using Search bar) and press Edit button;
In the opened form edit feature attributes values in Attributes tab, add description and attachments in Description and Attachments tabs;
Press Save button. If attributes, description and attachments are saved successfully you’ll be able to view them by selecting the feature in Feature table and pressing Open button.
188.8.131.52. Edit attributes using Web Map
Open Web Map and switch on the visibility of the relevant layer;
Find the feature on the Web Map (if necessary search it by its attributes using Search bar in the Toolbar or in the Feature table which can be opened via Layer dropdown menu in the upper left corner of Web Map web client. You can quickly find the selected feature on Web Map using Go to button in Feature table);
Click on the feature. In the opened dialog window with feature properties press Edit button;
In the opened form edit the values of feature attributes in Attributes tab, add description and attachments in Description and Attachments tabs;
Press Save button. If attributes, description and attachments are saved successfully you’ll be able to view them on the Web Map by clicking on the feature or by selecting the feature in the Feature table and pressing the Open button.
Updated attributes in PostGIS layers are saved directly to the external PostGIS database. Updated attributes in Vector layers, as well as descriptions and attachments in Vector layers and PostGIS layers are saved to your Web GIS.