1.11. How to set up legend visibility for Web Map
Map symbols may need additional explanation. Paper maps and atlases use a separate page or an insert explaining what each symbol means.
In NextGIS Web you have two options to display the information on symbols used in a layer:
Display the map symbols in the layer tree. The markers of the layer styles will be used. In addition, you can add detailed description of the map symbols in the Description panel (“i” in a circle).
In NextGIS Web settings the term “legend” refers specifically to the map symbols displayed in the layer tree of the Web Map under the layer name.
Visibility settings of the legend can be modified at various levels, allowing customization for specific goals, from “display all legends” to “display the legend differently for specific layers of one Web Map”. Legend visibility can be set:
for a layer of a Web Map
for a Web Map (all layers)
for the entire Web GIS
Legend visibility for a particular layer is set in the Layer tab of the Web Map settings.
Legend visibility for a Web Map is set in its Settings tab.
You can also set default legend visibility for the Web GIS: Control panel – Web Map – Legend. This setting will be used if both Web Map and the layer have “Default” selected for legend visibility.
Options for legend visibility are:
Expand – the legend is displayed in the layer tree. If the style has multiple marker types or colors, a full list will be shown. * To collapse the list click on the ^ symbol next to the layer menu.
Collapse – the legend is displayed, but the list of the map symbols for a specific layer is collapsed when the map is opened. To expand it, click on a table symbol next to the layer menu.
Disable – the legend is not displayed in the layer tree.
Default – the higher level setting is used. For the layers that have “default” selected for legend visibility, the setting of the Web Map will be used. If the Web Map also has “default” selected, the visibility setting selected for the Web GIS is applied.
NextGIS Web GIS supports legends for both vector and raster layers. Raster data in geographic information systems can represent vegetation cover and its density, changes in elevation, and other similar indicators. In this case the legend will show the gradient steps and corresponding values of the parameter.
The way the legend is formed depends on the raster type:
Multiband color - as it is RGB raster, the legend consists of red, green and blue squares;
Paletted/unique values - each value is represented with the color it corresponds to;
Singleband gray - it is a gradient, but the legend shows a set number of symbols (5 by default) marked by value range;
Singledband pseudocolor - like singleband gray shows symbols marked by value range.