1.7. How to create map styles for data visualization

Style is a special type of resource necessary for geodata visualization on Web map or with WMS service. When displaying a data layer on Web map of publishing it using WMS protocol you actually use its style which describes how geodata is visually presented on a map.

The only exception are WMS layers which don’t need you to create Styles, because the information about their visualization is passed to Web GIS from the external WMS server.

For Vector and PostGIS layers Web GIS supports two types of Styles - MapServer style and QGIS style. For Raster layers Web GIS allows you to create Raster style.

1.7.1. MapServer style

  1. Open the Properties page of Vector layer or PostGIS layer for which you want to create a style;
  2. Select Create resource ‣ MapServer style on the right side of Web GIS admin console;
  3. In the opened dialog fill in the field Display name in Resource tab. You can edit style parameters in MapServer style tab (optional). Examples of MapServer style can be found here;
  4. Press Create button. If Style is created successfully you’ll see its name in Child resources pane of the relevant Vector layer or PostGIS layer.
../../_images/Mapserver_style.gif

1.7.2. QGIS style

  1. Open the Properties page of Vector layer or PostGIS layer for which you want to create a style;
  2. Select Create resource ‣ QGIS style on the right side of Web GIS admin console;
  3. In the opened dialog fill in the field Display name in Resource tab;
  4. In QGIS style tab upload a file in QML format created with QGIS;
  5. Press Create button. If Style is created successfully you’ll see its name in Child resources pane of the relevant Vector layer or PostGIS layer.

Note

For Vector layers uploaded to Web GIS with desktop app NextGIS QGIS QGIS style is created automatically.

../../_images/QGIS_style.gif

1.7.3. Raster style

  1. Open the Properties page of Raster layer for which you want to create a style;
  2. Select Create resource ‣ Raster style on the right side of Web GIS admin console;
  3. In the opened dialog fill in the field Display name in Resource tab;
  4. Press Create button. If Style is created successfully you’ll see its name in Child resources pane of the relevant Raster layer.

Note

For Raster layers uploaded to Web GIS with desktop app NextGIS QGIS Raster style is created automatically.

../../_images/Raster_style.gif

Read more about creation and editing of Styles here.