Tooltip — Configure the tooltip for some layers

Principle

You can let the user activate map tooltips when hovering features by choosing a list of fields to display.

Prerequisites

The layer must be published as WFS (see WFS/OAPI) and the primary key must be published as well in the Layer properties.

Configuring the tool

../../_images/interface-add-tooltip.jpg
  • For setting a tooltip on a layer:

    1. Click the add_layer_svg button.

    2. Choose the layer.

    3. Select some fields to display in the tooltip.

    4. Optionally, choose to display the geometry.

    5. If you display the geometry, you can set the color.

    6. Optionally, check Display layer features to draw the features on the map with a symbology as close as possible to the QGIS style of the layer, for instance the icons of a point layer. The hovered feature is enlarged.

      Примечание

      The QGIS symbology is converted with the SLD standard, so the result is not always perfect. SVG and PNG files must be embedded in the symbology properties.

  • To edit a layer in the table, select it and click the edit_layer_svg button or double click on the row.

  • To remove a layer from the table, select it and click the remove_layer_svg button.

  • Fields will be displayed with their alias if it’s defined. See Add a alias on a field.