11.11. Integration with NextGIS Web
You can learn more about the main features of Web GIS in Web GIS.
NextGIS Mobile can be connected to a Web GIS created on the NextGIS Web platform. This integration allows to exchange data with a Web GIS: upload local layers to the server, download data from the server, edit the data, view tracks recorded with the app on a Web Map.
To add a connection to a Web GIS, you need to be logged in.
If the NextGIS ID already has a Web GIS associated with it, it will be automatically added to the app. All the Web GIS where the user is a team member will also be added.
If you don’t have a Web GIS yet, create it from your account.
You can add more connections to cloud-based Web GIS as well as on-premise Web GIS.
You can edit or delete a Web GIS connection.
11.11.1. Add a layer (vector/raster) from Web GIS
Open Layers tree panel (item 1 in Pic. 11.4.).
Then tap “Add geodata” button.
Select “Add from Web GIS” in the opened menu.

Pic. 11.86. Select how to add data
If you have multiple Web GIS connections added to the app, select the one you need (see Pic. 11.87.).

Pic. 11.87. Selecting Web GIS
Note
How to add a Web GIS connection Add Web GIS connection.
In the opened window you can see the list of internal resources and layers (vector and raster) for the selected Web GIS account. Select a group of Web GIS resources, then tick a layer and tap “Add”. A vector layer can be added both as vector and as raster.

Pic. 11.88. Selecting a layer in the Web GIS resource group
Note
If you need to select several layers in different groups of the same Web GIS, the ticked layers stay selected while you switch between groups.
A pop-up window of layer processing progress will appear.

Pic. 11.89. Layer processing pop-up
If you need to stop downloading the layer, press Cancel. To continue using the app as the layer is being processed, press Hide. The progress bar will be moved to the notification panel (see Pic. 11.90.).

Pic. 11.90. Download status in the notification panel
If you want to stop downloading the layer, open the notification panel and press Stop.
11.11.2. Parameters for synchronization with Web GIS
NextGIS Mobile application can access the server at set intervals to share edits and keep layers on the device and in the Web GIS up to date.
To enable synchronization:
Open the menu by tapping the three dots in the top right corner (item 5 in Pic. 11.4.).
Select “Settings” (Pic. 11.97.).
Select “Web GIS” (Pic. 11.98.).
Select the Web GIS from the list.

Pic. 11.91. List of added Web GIS connections
On the Web GIS settings screen you can:
Turn on automatic synchronization;
Set up sync interval (between 5 min and 2 hours);
Turn on/off synchronization for a particular Web GIS layer.

Pic. 11.92. Settings of a Web GIS account
Synchronized layers are marked with the icon. The same icon appears by the layer name in the layer tree.

Pic. 11.93. Synchronized layers marked in the layer tree
11.11.3. Add Web GIS connection
There are two ways to connect your NextGIS Mobile app to a Web GIS.
Via layer tree
Open Layers tree panel (item 1 in Pic. 11.4.).
Then tap on “Add geodata” button (item 4 in Pic. 11.5.).
Select “Add from Web GIS”.
In the opened dialog select “Add Web GIS”.

Pic. 11.95. Web GIS dialog
On the next screen enter the Web GIS name, username and password of your NextGIS ID and press Sign in.

Pic. 11.96. Adding new Web GIS connection
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.
From the Settings
Open Layers tree panel (item 1 in Pic. 11.4.).
Select “Settings”.

Pic. 11.97. Main menu
Select “Web GIS”.

Pic. 11.98. Settings menu
In the opened menu press Add Web GIS.

Pic. 11.99. Web GIS menu
On the next screen enter the Web GIS name, username and password of your NextGIS ID and press Sign in (see Pic. 11.96.).
11.11.4. Add connection to NextGIS Web on-premise
You can learn more about main features of NextGIS Web on-premise in Key features of NextGIS Web.
If you keep your data on your own NextGIS Web server, tap “Add Web GIS” using either of the ways to add a new Web GIS connection (see above), then tap the link at the bottom of the screen (see Pic. 11.100.).

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

Pic. 11.101. Web GIS connection parameters
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.
11.11.5. Edit Web GIS connection
Open the menu by tapping the three dots in the top right corner (item 5 in Pic. 11.4.).
Select “Settings” (Pic. 11.97.).
Select “Web GIS” in the opened menu (Pic. 11.98.).
Select a Web GIS from the list (see Pic. 11.98.).
On the next screen select “Edit account”.

Pic. 11.102. Editing Web GIS connection
6. In the opened window you can modify the following fields (see Pic. 11.103.):
Username;
Password.

Pic. 11.103. Editing a Web GIS connection
11.11.6. Delete Web GIS connection
There are two ways to delete a connection to a Web GIS.
You can delete the connection in the app settings.
Open the menu by tapping the three dots in the top right corner (item 5 in Pic. 11.4.).
Select “Settings” (Pic. 11.97.).
Select “Web GIS” (Pic. 11.98.).
Select a Web GIS from the list.
Select “Delete account”.

Pic. 11.104. Delete Web GIS connection
Confirm deleting the account.

Pic. 11.105. Delete Web GIS connection
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 section of the settings.

Pic. 11.106. Selecting accounts in OS settings
Select the “NextGIS” account from the list.

Pic. 11.107. NextGIS account in OS settings
Select the Web GIS connection you want to delete.

Pic. 11.108. Selecting Web GIS account in OS settings
Tap Delete (it can be on the same page or in a context menu).

Pic. 11.109. Deleting Web GIS account through the OS settings