1.8. How to create map styles for data visualization
Style is a special type of resource necessary to visualize geodata on Web Map or with WMS service When displaying a data layer on a Web Map or 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 and TMS layers which don’t need you to create Styles, because the information about their visualization is passed to Web GIS from the external server.
Web GIS supports several types of Styles.
For Vector and PostGIS layers you can create MapServer style or QGIS style.
For Raster layers you can create Raster style or QGIS style.
1.8.1. MapServer style
Open the Properties page of Vector layer or PostGIS layer for which you want to create a style;
Select admin console;
on the right side of the Web GISIn the opened dialog, go to Resource tab and type a name for the new style in the field Display name. You can edit style parameters in MapServer style tab (optional). Examples of MapServer style can be found here;
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.

Pic. 1.24. Selecting MapServer style

Pic. 1.25. Creating MapServer style
1.8.2. QGIS style
Open the Properties page of the layer for which you want to create a style;
Select admin console;
on the right side of the Web GISIn the opened dialog, go to Resource tab and type a name for the new style in the field Display name;
Go to QGIS style tab and upload a file in QML format created with QGIS (learn how to create QML file with QGIS);
Press Create button. If Style is created successfully, you’ll see its name in Child resources pane of the relevant layer.

Pic. 1.26. Selecting QGIS style

Pic. 1.27. Create resource window for QGIS style

Pic. 1.28. Uploading QML file
Note
For Vector layers uploaded to Web GIS with desktop app QGIS a QGIS style is created automatically.
1.8.3. Raster style
Open the Properties page of Raster layer for which you want to create a style;
Select admin console;
on the right side of the Web GISIn the opened dialog, go to Resource tab and type a name for the new style in the field Display name;
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 QGIS a Raster style is created automatically.

Pic. 1.29. Selecting “Raster style

Pic. 1.30. Creating Raster style
Read more on how to create and edit Styles here.