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

Labels

PrécédentStylesSuivantPopups

Dernière mise à jour il y a 8 jours

Labels are text elements attached to map features. They are used to display information about it. For example, you can use labels to display city names for a point layer representing cities.

The Labels section, accessible via the icon, allows you to configure the content, style, and display of labels for the layer's elements.

1

Font Click on this button to select the label text style: font size, bold, italic, font color, outline, and outline color.

2

Activate labels Check this box to display labels by default in JMap NG.

3

4

5

Functions

6

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.

7

Check the box to allow the labels of the layer to overlap the labels of other layers. This can be useful to ensure that all labels of this layer are displayed. Follow the line Only for line elements. Check the box to display the label text along the lines. Spacing (pixels) Only for line elements. Set the labels spacing (in pixels) along the lines.

8

Offset (pixel) Set the offset in pixels and on both dimensions of the label's position relative to the element.

9

Frame Check the box to add a frame to the label text. Select the background and countour color for the frame.

10

Rotation If you check Rotation using an attribute, select the numeric attribute whose values ​​will be used as the rotation angle and the rotation direction. If you check Follow map rotation, labels will follow the map rotation.

11

Proportional size By default, label text is always displayed at the specified font size, independently of the zoom level of the map. Check this option to have the label text size adjusted proportionally to the zoom level of the map. Drag the point in the bar to select the reference zoom level at which text is displayed at the specified font size. When the zoom level of the map changes, the text size is modified accordingly.

12

Click on the language of your choice to enter the label content in the selected language.

Label Content

Labeling is configured by specifying text that defines the label's content. Label text can span multiple lines.

The text can contain static and variable parts, such as functions. When displayed, the functions are executed and replaced with the result. Labels don't support HTML formatting or hyperlinks.

The following functions are available:

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.

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.

The available attributes are displayed in the Attributes section.

To enter the label content:

  1. Write the text for static content.

  2. If you want to include 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 also displayed.

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

Area for writing the label content. The section provides details on this topic.

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

Functions available for labels. The section details these functions.

Position Determine the position of the label relative to the element. Click on to select the position from the nine possible options. Allow overlapping

Click on to save the label content.

Label content
Layer Properties
Label content