Salta el contingut

Tools and processes viewer

From Mapia SERVER you can configure the tools, processes, links, etc. that can be opened and executed from the viewer. These tools and processes are found in the geoportal’s tools panel.

General configuration of a tool

In the Information tab, the general configuration is detailed.

  • Name: the internal name of the tool.
  • Title: the title of the tool. The name the user sees in the viewer.
  • Description: a description of what the tool does (optional).
  • Icon: the tool’s icon. It can be from the following libraries: material icons, line-awesome, and font-awesome.
  • Visible in the geoportal: to activate and deactivate the tool.
  • Order: the order in which the tools are placed in the viewer’s tool panel.

Attention

  • If the JavaScript configuration of the viewer defines tools that are not defined in Mapia SERVER, they will appear after those defined in the administrator.
  • If the JavaScript configuration of the viewer (the front-end code) defines a tool with the same name, it will be overwritten and the one defined in Mapia SERVER will be shown.

Action of a tool when executed

In the Action tab, the behavior of the tool is defined.

Viewer Action

Executes the JavaScript code of the tool with the same name defined in the viewer configuration (in the front-end part).

URL

Opens the link defined in the configuration.

  • URL: link to be opened
  • Target: where the link should be opened. It can be in the same tab or a new one.

Webhook

By defining an endpoint and parameters, it allows making a GET request from the viewer to execute a Webhook.

  • URL: Webhook endpoint
  • Headers: Headers to be sent to the webhook. JSON format. Ex: {“Authorization”: “Bearer token”}
  • Parameters: Parameters to be sent in the webhook body. JSON format. Ex: {“param1”: “value1”, “param2”: “value2”}

Viewer route

Changes the route to another route of the viewer. For example, to go to the home page or the catalog tab.

  • To: name of the route defined in the viewer’s router (in the front-end code)

Permissions

From the permissions tab, you can configure what type of user can see the tool. The tool will be displayed and can be executed depending on the user, for example, if they are authenticated or not, or if they belong to a specific group.