<a id="ngmobile-integration"></a>

# Manage Web GIS Connection

NextGIS Mobile can be connected to a Web GIS created on the NextGIS Web platform. This allows data exchange with the server:

* send local layers to Web GIS,
* download data from the server,
* edit data,
* view tracks recorded with the app on Web Maps.

The main features of the Web GIS software can be found in the section [Web GIS: Description and Main Features](https://docs.nextgis.com/docs_ngcom/source/description.html#ngcom-description).

After [authorization](https://docs.nextgis.com/docs_ngmobile/source/auth.html), your own Web GIS and those to which you are added as a [team member](https://docs.nextgis.com/docs_ngcom/source/teams.html) will be available immediately.

#### SEE ALSO
[How to create your own Web GIS](https://docs.nextgis.com/docs_ngcom/source/create_webgis.html).

If you were added to a new team **after** logging into NextGIS Mobile, the Web GIS may not automatically appear in the list. Then you can [add a connection](https://docs.nextgis.com/docs_ngmobile/source/ngw_integration.html#ngmobile-create-a-connection-to-webgis) through the settings.

<a id="ngmobile-create-a-connection-to-webgis"></a>

## Add Web GIS connection

There are two ways to connect your NextGIS Mobile app to a Web GIS.

**Via layer tree**

1. Open the layer tree ![three white stripes](docs_ngmobile/source/_static/ic_layer_tree.png) (see [Fig. 1009.](main.html.md#ngmobile-main-activity-pic)).
2. Tap the “Add Geodata” button ![double squares with "+"](docs_ngmobile/source/_static/button_add_layer.png).
3. Select “Add from Web GIS”.

![image](docs_ngmobile/source/_static/ngm_layer_tree_add_from_wg_en.png)
1. In the pop-up window, select **Add Web GIS**.

![image](docs_ngmobile/source/_static/ngm_add_webgis_en.png)
1. On the next screen enter the Web GIS name, username and password of your NextGIS ID and press **Sign in**.

![image](docs_ngmobile/source/_static/ngm_webgis_login_en.png)

If you don’t have a Web GIS, tap **create** on this screen. Your account page will be opened in a browser. From that page you can [create a Web GIS](https://docs.nextgis.com/docs_ngcom/source/create_webgis.html).

**From the Settings**

1. Open the menu by tapping the three dots in the top right corner ![tree dots](docs_ngmobile/source/_static/ic_menu.png).
2. Select **Settings**.

![image](docs_ngmobile/source/_static/ngm_menu_en.png)
1. Select **Web GIS**.

![image](docs_ngmobile/source/_static/ngm_settings_webgis_en.png)
1. In the opened menu press **Add Web GIS**.

![image](docs_ngmobile/source/_static/ngm_nowebgis_en.png)

On the next screen enter the Web GIS name, username and password of your NextGIS ID and press **Sign in** (see [Fig. 1119.](#ngm-webgis-login-pic)).

<a id="ngm-create-connection-onp"></a>

## Add connection to NextGIS Web on-premise

If you want to store data on your own NextGIS Web server, then when [creating a connection to Web GIS](https://docs.nextgis.com/docs_ngmobile/source/ngw_integration.html#ngmobile-create-a-connection-to-webgis), you need to switch to the option **your own NextGIS Web server**:

![image](docs_ngmobile/source/_static/ngm_webgis_switch_op_en.png)

In the opened dialog fill in the connection details: Web GIS URL, username and password, then press **Sign in**.

![image](docs_ngmobile/source/_static/ngm_webgis_login_op_en.png)

#### NOTE
Many devices automatically add a space
at the end of a text field when using
auto-complete or pasting from a clipboard.  In this case you need to delete the space manually. For NextGIS Web an additional character makes it a different username / password, so you won’t be able to log in.

<a id="ngmobile-change-account"></a>

## Edit Web GIS connection

1. Open the menu by tapping the three dots in the top right corner ![tree dots](docs_ngmobile/source/_static/ic_menu.png).
2. Select **Settings**.
3. In the Settings, select **Web GIS**.
4. Next, select the previously added Web GIS from the list.
5. On the next screen select **Edit account**.

![image](docs_ngmobile/source/_static/ngm_webgis_edit_acc_en.png)
1. Two parameters of Web GIS connection can be edited:

1. Username;
2. Password.

![image](docs_ngmobile/source/_static/ngm_edit_account_en.png)

<a id="ngmobile-delete-account"></a>

## Delete Web GIS connection

There are two ways to delete Web GIS connection from the app.

1. Remove the connection **in the app settings**.

* Open the menu by tapping the three dots in the top right corner ![tree dots](docs_ngmobile/source/_static/ic_menu.png).
* Select **Settings**.
* In the opened options menu, select **Web GIS**.
* Select the Web GIS you want to delete from the list.
* Select **Delete account**.

![image](docs_ngmobile/source/_static/ngm_webgis_remove_acc_en.png)
* Confirm deletion.

![image](docs_ngmobile/source/_static/ngm_webgis_remove_confirm_en.png)
1. You can also delete a connection to a Web GIS in your **device settings**.

Go to the Settings of your phone or tablet. Go to Accounts in your device settings.

![image](docs_ngmobile/source/_static/settings_in_os_eng.png)

Select the “NextGIS” account from the list.

![image](docs_ngmobile/source/_static/accounts_in_os_eng.png)

Select the Web GIS connection you want to delete.

![image](docs_ngmobile/source/_static/remove_account_in_os_eng.png)

Tap **Delete** (it can be on the same page or in a context menu).

![image](docs_ngmobile/source/_static/remove_account1_in_os_eng.png)
