Configuration Editor

Description

From here you can edit the configuration JSON files tenantConfig.json and config.json.

../../../../_images/config_1.png

config.json

This file defines the global viewer configuration, as well as the mobile and desktop plugin configuration. For example:

  • Define which plugins to activate when accessing from a mobile device or from desktop.

  • Change a plugin’s configuration to modify its behavior (if it allows it)

  • Change a plugin’s visibility depending on the active Theme.

  • Define the projections available in QWC2.

Examples

The GwMincut plugin (Cut Polygon) will only be shown in the Drinking water theme, using themeWhitelist:

{"key": "GwMincut", "icon": "mincut", "mode": "Network", "themeWhitelist": ["Agua potable"]},

Change the configuration of the GwFlowtrace plugin (Flow tracer) to change the color of the lines and points drawn on the map:

{
    "name": "GwFlowtrace",
    "cfg": {
      "standardLinesStyle": {
        "strokeColor": {
          "trace": [255, 20, 147, 1],
          "exit": [255, 20, 147, 1]
        }
      },
      "standardPointsStyle": {
        "strokeColor": {
          "trace": [255, 20, 147, 1],
          "exit": [255, 20, 147, 1]
        }
      }
    }
  },

For more information about config.json, consult the QWC2 documentation.

tenantConfig.json

This file defines the configuration of the themes and services used by the viewer, for example the Administration Backoffice itself (qwc-admin-gui). It is used together with the config.json file to generate the individual configuration files that the services need. You rarely need to edit this file, since most changes can be more practically done using the Administration Backoffice itself (for example, theme configuration).