# Manage Web GIS resources

In NextGIS Connect you can manage resources in your Web GIS: rename, delete and create, move, and for some resource types - duplicate and copy.

<a id="ng-connect-res-group"></a>

## Create resource group

In the top menu of the NextGIS Connect plugin you’ll find a ![button_newfolder](docs_ngconnect/source/_static/button_newfolder.png)“Create group” button. Alternatively, press Ctrl+Shift+N on the keyboard.

A new group will be created:

* If a resource group is selected in the Connect panel - in that group;
* If other type of resources but a group is selected - in the closest parent group;
* If no resource is selected - in the main resource group.

![Create new group](docs_ngconnect/source/_static/ngc_create_group_en.png)

<a id="web-map"></a>

## Create Web Map from a layer

* In NextGIS Connect panel select from the resource tree the Vector layer which you want to display on a Web Map;
* In the layer’s context menu select **Create Web Map**.

A Web Map with the name “layer_name-map” will be created in the same resource group. A QGIS style will be created for the layer and added to Web Map. The map’s initial extent is set by the layer.

<a id="new-vector-layer"></a>

## Create empty vector layer

With NextGIS Connect plugin you can create a new vector layer in your Web GIS without uploading data.

In the Connect panel select the resource group inside which you want to create a new layer.

Open the dropdown menu by clicking the downward arrow by the ![button_newfolder](docs_ngconnect/source/_static/button_newfolder.png) button and select ![button_c_new_layer](docs_ngconnect/source/_static/button_c_new_layer.png) NextGIS Web vector layer.

![image](docs_ngconnect/source/_static/ngc_create_ngw_layer_panel_en.png)

Alternative way: in the menu bar select Layer ‣ Create layer ‣ New NextGIS Web vector layer.

![image](docs_ngconnect/source/_static/ngc_create_ngw_layer_en_2.png)

In the opened dialog enter the parameters of the new layer:

![image](docs_ngconnect/source/_static/ngc_create_ngw_layer_set_en_2.png)
* Parent - the resource is created in the group selected in NextGIS Connect layer tree;
* Layer name;
* Geometry type;
* Option to include Z dimension;
* Layer fields: enter the display name and keyname, select field type, then press **Add to Field List**. Available field parameters:
  * Feature table - the contents of the field will be displayed in the identification panel;
  * Text search - enable/disable text search in the values of the attribute;
  * Required;
  * Label attribute - values from this field will be used as to label features in search results.
* You can also choose to add the layer to the project or just create in in the Web GIS.

Also while creating a layer you can set up [versioning](https://docs.nextgis.com/docs_ngweb/source/version.html#vers-qgis) for it. Go to the second tab, “Settings” and select from: auto - defaults to the [Web GIS settings](https://docs.nextgis.com/docs_ngweb/source/version.html#vers-ngw-default), enabled, disabled.

![image](docs_ngconnect/source/_static/ngc_create_ngw_layer_set_version_en_2.png)

To complete the process, pess **Create**.

The new layer will appear in the resource tree of the Connect panel as well as the QGIS Layers panel if the “Add layer to project” option was ticked.

On Free plan you can create up to 15 layers. If you need more, you can [upgrade to Premium](https://my.nextgis.com/subscription/) in your NextGIS ID account.

<a id="connect-services"></a>

## Create service

NextGIS Connect plugin allows to quickly publish vector data using standard protocols [WFS](../../glossary.html.md#term-WFS), [WMS](../../glossary.html.md#term-WMS) and OGC. Raster data can also be published using [WMS](../../glossary.html.md#term-WMS).

<a id="create-wfs-service"></a>

### Create WFS service

It’s possible due to the quick creation of [WFS service](../../docs_ngcom/source/data_services.html.md#ngcom-wfs-service) option in NextGIS Connect:

* Select in NextGIS Connect Resources panel Vector layer which you want to publish using WFS protocol;

![image](docs_ngconnect/source/_static/NGConnect_wfs_select_en.png)
* Select **Create WFS service** in layer context menu;

![image](docs_ngconnect/source/_static/NGConnect_wfs_context_en.png)
* In the opened dialog window set the number of layer’s features to be published via WFS service by changing the value of the field **The number of objects returned by default**;

![image](docs_ngconnect/source/_static/NGConnect_wfs_number_en.png)
* If WFS service is created successfully you’ll see it in the relevant Resource group. The Vector layer is already connected to it.

![image](docs_ngconnect/source/_static/NGConnect_wfs_result_en.png)

#### NOTE
You can edit the settings of WFS service (including its name, published layers and their settings) in the user interface of your Web GIS.

<a id="create-ogc-api-feat-service"></a>

### Create OGC API - Features service

NextGIS Connect plugin enables a fast publication of Vector layers from your Web GIS using standard OGC API - Features protocol.

* Select in NextGIS Connect Resources panel a **Vector layer** from your Web GIS resource tree which you want to publish using OGCF protocol;

![image](docs_ngconnect/source/_static/NGConnect_ogc_select_en.png)
* Select **Create OGC API - Features service** in layer context menu;

![image](docs_ngconnect/source/_static/NGConnect_ogc_context_en.png)
* In the opened dialog window set the number of layer’s features to be published via OGCF service by changing the value of the field **The number of objects returned by default**;

![image](docs_ngconnect/source/_static/NGConnect_ogc_number_en.png)
* If OGCF service is created successfully you’ll see it in the relevant Resource group. The Vector layer is already connected to it.

![image](docs_ngconnect/source/_static/NGConnect_ogc_result_en.png)

<a id="create-wms-service"></a>

### Create WMS service

The process is similar to creation of WFS service (see above):

* In the desktop application (QGIS) in the resource Web GIS tree of module NextGIS Connect select **Vector layer**, **Raster layer** or **QGIS style** that you want to publish via the WMS protocol;

![image](docs_ngconnect/source/_static/NGConnect_wfs_select_en.png)
* Select **Create WMS Service** in the context menu of the layer;

![image](docs_ngconnect/source/_static/NGConnect_wms_context_en.png)
* In the dialog that opens select a layer style for publishing the WMS Service;

![image](docs_ngconnect/source/_static/NGConnect_wms_style_en.png)
* If the WMS Service has been created successfully, then a new WMS Service will appear in the corresponding Resource Group, to which your Vector Layer is already connected.

![image](docs_ngconnect/source/_static/NGConnect_wms_result_en.png)

<a id="connect-resource-double"></a>

## Duplicate resource

With NG Connect you can copy an existing Web GIS layer. This option is available for Vector and Raster layers.

* To make a copy of a layer, select it in the Connect panel, then in the context menu click **Duplicate resource**.
* In the pop-up window confirm copying.

Copy will be created in the same group. The layer’s style will also be duplicated.

![image](docs_ngconnect/source/_static/ngc_double_en.png)

<a id="connect-style-copy-wg"></a>

## Copy style from one layer to another

With NextGIS Connect you can add an existing style to another layer in your Web GIS.

In the Connect panel select the style you want to copy. Open the resource context menu and click **Copy** or press Ctrl+C.

![image](docs_ngconnect/source/_static/ngc_style_copy_en.png)

Now select the layer you what to apply the style to. Open the layer’s context menu and click **Paste** or press Ctrl+V.

![image](docs_ngconnect/source/_static/ngc_style_paste_en.png)

In the next dialog you can enter the name for the style.

![image](docs_ngconnect/source/_static/ngc_style_name_en.png)

#### HINT
You can also apply a style [to a layer in your QGIS project](https://docs.nextgis.com/docs_ngconnect/source/edit.html#connect-style-copy).

<a id="connect-resource-delete"></a>

## Delete resource

With NextGIS Connect you can quickly create and delete any resource in your Web GIS.

* In the NextGIS Connect panel select the resource(s) you wish to delete.
* In the context menu select **Delete**.

A pop-up window shows the total number of resources (including child resources) that will be deleted.

![image](docs_ngconnect/source/_static/ngc_delete_confirm_en.png)

Check the list of resources to make sure you don’t accidentally delete something important, then click **Delete** co confirm. The deleted resources disappear from the Web GIS layer tree.
