For the complete documentation index, see llms.txt. This page is also available as Markdown.

Popups

Popups allow contextual information to be displayed for features clicked or hovered on the map. This information can include text, attribute values, hyperlinks, images, etc.

You can precisely configure the data to display in popups for each layer.

The Popups section, accessible via the popup icon , allows you to define the content and display parameters of tooltips.

1

Check this box to enable popup display for the layer in JMap NG applications.

If the layer comes from a WMS/WMTS data source and feature information is available to display in a popup, check this box. You do not need to configure the popup content.

2

Text field for writing the popup content. See the Popup Content section for details.

3

Attributes available for the tooltip.

These are the layer attributes you check in the Properties section.

4

Functions available for the tooltip. The Popup Content section provides more details.

5

Zoom levels

Zoom level range at which popup are displayed.

Select the range by dragging the indicators on the bar or entering the minimum and maximum zoom thresholds.

The content is defined using a text field in which you can combine static text with dynamic elements called functions. When displayed, these functions are executed and replaced by their result.

Available functions

centroid()

Replaced by the coordinate of the geometric centroid of the feature's geometry.

date()

Replaced by the current date.

elementId()

Replaced by the feature identifier.

encode(attrib, encoding)

Replaced by the value of attribute attrib, once encoded with the specified character encoding (UTF-8, CP437, ISO 8859-1, etc.).

Example: encode(name, UTF-8)

ev(attrib)

Replaced by the value of the linked attribute whose name is passed as a parameter, for the hovered feature.

Example: ev(id)

ev(attrib, useValueDomain)

When true, replaced by the value domain label.

When false (or omitted), replaced by the attribute value.

Example: ev(categorie, true)

format(attrib, format)

Replaced by a date or number formatted according to a specific format.

Example: format(date_insp, dd/MM/yyyy) or format(attrib, ##0,00)

ifNull(attrib, value)

Replaced by value only if attrib is null.

Example: ifNull(temp, N/A)

ifNotNull(attrib, value)

Replaced by value only if attrib is not null.

Example: ifNotNull(land_value, $)

lineLength()

Replaced by the length of a hovered linear feature.

polygonArea()

Replaced by the area of a hovered polygon feature.

projectName()

Replaced by the name of the current project.

subString(attrib, startIx, endIx)

Replaced by a substring of attribute attrib, between positions startIx and endIx.

Example: subString(name, 0, 5) displays the first 5 characters of the name attribute value. If the value is Montréal, the popup displays Montr.

userName()

Replaced by the user code of the currently logged-in user.

attachment()

Replaced by the documents attached to the feature.

JMap NG users can view the document by clicking on it.

See the Data Source Attachments section for details.

To configure popup content:

  1. Enter the static text.

  2. To insert dynamic content, place the cursor at the desired location in the content field.

  3. Click the function to insert. It is automatically added at the selected location, and a menu displaying compatible attributes appears.

  4. Select an attribute and add a value if necessary.

  5. Click to save the popup content.