JMap Cloud
English
English
  • Welcome to JMap Cloud documentation
  • JMap Cloud Portal
    • JMap Cloud Portal User Guide
      • Introduction
        • Accessing JMap Cloud Portal
        • User Interface
        • Dashboard
        • Roles
      • Managing the Organization
        • General
        • API Keys
        • Extensions
        • Members
        • Groups
        • Invitations
      • Connecting Data: Data Sources
        • Creating Data Sources
          • Vector/Raster Data Files
          • Non Spatial Tabular Data Files
          • WMS/WMTS Service
          • Vector Tile Service
          • Feature Service
        • Status of a Data Source
        • Managing Data Sources
          • Displaying and editing information
          • Updating data
          • Permissions
          • Removing a data source
        • Uploading Files
      • Organizing Data into Projects
        • Creating a New Project
        • Managing Projects
          • Open in JMap NG
          • Open in Studio
          • Settings
          • Permissions
          • Get the Public Link
          • Vector Tile Cache
          • Deleting the project
      • Configuring Project Data
        • Setting the Initial Extent
        • Adding Data
        • Organizing Layers
          • Setting the Order of the Map Layers
          • Establishing the Order of Layers in the Layers Panel of Studio and JMap NG
          • Focusing the Map on a Layer
          • Resetting Display
          • Adding a Layer Group
          • Deleting a Layer or Layer Group
          • Controlling the Display of a Layer or Group of Layers
        • Configuring a Layer
          • Layer Properties
          • Styles
          • Labels
          • Popups
          • Layer Filters
        • Configuring a Data Table
      • Create and manage data: forms
        • Composition of forms
      • Jobs
  • JMap NG
    • JMap NG User Guide
      • Introduction
        • Connecting to JMap NG
        • User Interface
        • Navigating on the Map
        • Profile and user settings
      • The Data
        • The Layers Panel
        • Data Layers
          • Displaying layers
          • Thematics
          • Layer Information
          • Geographic Extent of the Layer
          • Making layer elements selectable
      • I Wish to...
        • Display Element Information
        • Select Elements on the Map
        • Measure Distances and Surfaces
        • Add Annotations to the Map
        • Export / Print a Map
    • JMap NG Developer Documentation
      • Startup Options
      • Extensions
      • Examples
        • Start the JMap NG Core library
        • Start the JMap NG App
        • Add a JMap NG App extension
        • Toggle a JMap layer visibility
        • Add a layer to display custom data from GeoJSON file
        • Locate and select features by attribute query
        • Add an event on move end
        • Add attributions on the map
        • Locate and select feature by id
        • Locate and select feature(s) by location
        • Custom mouseover on a layer
        • Create a custom form in a div
      • Changelog
  • JMap Cloud API
    • JMap Cloud API Documentation
  • JMap Cloud Plugin for QGIS
    • JMap Cloud Plugin User Guide
      • Installing the plugin
      • Connecting to JMap Cloud
      • Opening a project
      • Editing features
      • Exporting a project
Propulsé par GitBook

K2 Geospatial 2023

Sur cette page
Exporter en PDF
  1. JMap Cloud Portal
  2. JMap Cloud Portal User Guide
  3. Configuring Project Data
  4. Configuring a Layer

Popups

PrécédentLabelsSuivantLayer Filters

Dernière mise à jour il y a 9 jours

Popups are used to display information about the highlighted elements. This information includes text, attribute values, hyperlinks, images, etc.

You determine the information displayed in the popups for each layer.

The Popups section, accessible via the icon, allows you to configure the content and display of the popups.

1

Check this box to display popups.

2

3

4

5

Zoom levels. Zoom level threshold at which labels are displayed. Select the threshold by dragging the indicators on the bar or by entering the minimum and maximum zoom values ​​for the range.

Popup content

The popup content is configured by specifying text that can contain static and variable parts, such as functions. When displayed, the functions are executed and replaced with the result.

Follow the available functions for popups:

centroid()

Replaced by the coordinates of the geometric centroid of the element's geometry.

date()

Replaced by the current date and time.

elementId()

Replaced by the element identifier.

encode(attrib, encoding) attrib : the name of the attribute to encode encoding : the name of the encoding

Replaced by the value of the attrib attribute once it is encoded with the specified character encoding (UTF-8, CP437, ISO 8859-1, etc). Example encode(name, UTF-8) Replaced by the value of the name attribute encoded in UTF-8 characters.

ev(attrib) attrib : the name of an attribute

This function is replaced by the value of the bound attribute whose name is passed as a parameter for the pointed element. Example ev(id)

Label displays the value of the id attribute for this element.

format(attrib, format) attrib: the name of a date or numerical attribute format: the desired date format

Replaced by a number or date that was formatted according to a specific format. Example format(date_insp, dd/MM/yyyy)

ifNull(attrib, value) attrib : the name of the attribute to test value : the value to display if attrib is null

This function is replaced by the value value only if the value of the attrib attribute is null. If the attribute value is not null, nothing is displayed. Example ifNull(temp, N/A) Displays N/A if the value of the temp attribute is null. Example ifNull(attrib_a, attrib_b) Displays the value of the attrib_b attribute if the value of the attrib_aattribute is null.

ifNotNull(attrib, value) attrib : the name of the attribute to test value : the value to display if attrib is not null

This function is replaced by the value value only if the value of the attrib attribute is not null. If the attribute value is null, nothing is displayed. Example ifNotNull(land_value, $) Displays $ only if the value of land_value is not null.

lineLength()

This function is replaced by the length of a pointed line type element.

polygonArea()

This function is replaced by the area of a pointed polygon type element.

projectName()

This function is replaced by the name of the current project.

subString(attrib, startIx, endIx) attrib: the name of the attribute for which a part must be extracted. startIx: starting position in the character string. endIx: ending position in the character string.

This function is replaced by a portion of the value (as a character string) of the attrib attribute, between the startIx position and endIx position. Example subString(name, 0, 5) Replaced by the first five characters of the name attribute value. If this value is Montreal, the mouseover will display Montr.

userName()

This function is replaced by the user code of the user that is currently connected.

The available attributes are displayed in the Attributes section.

To enter the popup content:

  1. Enter the text for the static content.

  2. If you want to integrate dynamic content, position the cursor at the desired location within the content area and click to select the function you want to use. It is instantly added to the content area, and a menu of available attributes for the function is displayed.

  3. Select the attribute and add a value if applicable.

Area for entering the popup content. The section provides details on this topic.

Available attributes for the popup. These are the layer attributes that you select in the section.

Available popup functions. The section provides details on this topic.

where date_insp is the name of an attribute containing a date and dd/MM/yyyy is the desired date format, as indicated in the documentation of the Java class. Example format(attrib, ##0,00) where attrib is the name of an attribute containing a number and ##0,00 is the desired number format, as indicated in the documentation of the Java class.

Click to save the popup content.

Popup content
Properties
Popup content
java.text.SimpleDateFormat
java.text.DecimalFormat