5.8. Administration of web map

There could be several web maps in NextGIS Web. For example one map is for work, another is for public access and third is for testing of layer styles.

Web maps have their own URL addresses. You can manage display web map access permission for different users and groups.

Web map displays layers. User can turn web maps on and off. You can set the order for layers, define layers default visibility, create group layers. Groups on a map do not relate to groups of layers in control panel. There is no option to transfer layers between groups. Groups may be nested.

5.8.1. Creation of web map

To add a web map navigate to a resource group where you want to create a map and in actions pane “Create resource” select “Web map” (see Pic. 5.92.).


Pic. 5.92. Selection of “Web map” action.

Create resource dialog for a web map will open and will look like Pic. 5.93..


Pic. 5.93. Create resource dialog for web map.

Enter web map display name that will be visible in administrator interface and in map layer tree.

Field “Keyname” is optional.

You can also add resource description and metadata on the corresponding tabs.

Switch from “Resource” tab to “Extent and bookmarks” tab, which is presented on Pic. 5.94..


Pic. 5.94. “Extent and bookmarks” tab.

Set the extent in four fields by setting degrees.

The field “Extent from layer” allows to set web map extent on the layer extent. If you click the icon with plus on a folder near this field, the window “Select resource” will open, where you can select a layer to use for setting web map extent (four fields with extent coordinates will be filled up, see Pic. 5.95.).


Pic. 5.95. “Select resource” window.


Coordinates for extent could be generated using third-party services http://boundingbox.klokantech.com/ (select csv in a list), http://lxbarth.com/bbox.

You can select a vector layer for bookmarks in the field “Bookmark resource”. If layer is set the Web map will show a bookmarks panel with names defined by “Label attribute”. You can use any type of geometry for vector layer with bookmarks.

Navigate to “Layers” tab. This tab is used for adding layer, joining them to groups or removing them. These actions could be performed using corresponding buttons “Add layer”, “Add group” and “Remove” (see Pic. 5.96.).


Pic. 5.96. “Layers” tab.

When a layer is added you set its style. The style is connected with the layer, so that “Style” is absent in main resource group. To create a style navigate to the layer resource and in actions pane select “MapServer style” or “QGIS style”. In opened window you can import a QML style from QGIS or enter the style manually (see ngweb_layer_properties_window_pic).

Settings for layers on web map are presented on Pic. 5.97..


Pic. 5.97. Layers tab of create resource dialog.

A checkbox “Enabled” sets default visibility of a layer.

Field “Transparency” sets layer transparency on a map from 0% to 100%. A layer with 1% transparency is almost transparent, a layer with 100% transparency is opaque.

Field “Adapter” is recommended to be set to “Tiles” (256 x 256 pixels images) if there is no special requirements. You can also set it to “Image”, so there will be one image on a whole map.

For “Scale” parameters you may enter a scale range in the format like “1 : 10 000”. Scale range could be set in a layer style and in layer settings. If layer should be displayed in a range of scales it is better to set this in layer properties, instead of a style.


If you set a scale range only in style empty tiles will be generated for distribution which is less efficient.

“Layer order” button opens a window where you can set layer order different from layer order in layers tree to show on a map.

“Basemaps” tab allows to add and remove basemaps using corresponding buttons “Add” and “Remove” (see Pic. 5.98.).


Pic. 5.98. “Basemaps” tab. Web map with no basemap

By default a Web map is created with OpenStreetMap basemap. If you need a map without a basemap: create a new basemap, put ‘blank’ in name and URL and add it to your Web map. Turn just added basemap off.

A checkbox “Enabled” sets default visibility of a basemap.

Field “Transparency” sets basemap transparency on a map from 0% to 100%. A basemap with 1% transparency is almost transparent, a basemap with 100% transparency is opaque.

After a creation of map content and adjusting settings for all layers click a “Save” button. A saved map will be shown in a list of maps. Click an icon with a map in a list of web maps or click a “Display” link in a window with web map properties to open a web map in a client application. Web map client application is described in section A viewer for web maps. Address which is used for web client may be transfered to other users because it is static.


Address will become inavailable if a web map is deleted.