(this page was created automatically. In case of formatting issues, please visit the official Wiki Page)

Image Point Viewer

Overview

Example Point Viewer

Specs

Tokens

Token Description
displayName Display name shown in the structure panel
imageUrl URL of the image displayed in the viewer
resizeImageStrategy Strategy for resizing image
fitToContainer Scales the image to fit the container
useStaticSize Uses specified width and height values
fillWholeContent Fills the entire container, may crop
useRealSize Displays the image at actual size
width Fixed width when using static size strategy
widthAuto Automatically adjusts width to content
height Fixed height when using static size strategy
heightAuto Automatically adjusts height to content
disableScrollbar Controls visibility of scrollbars
paddingClass Adds spacing around the image viewer
thresholdConfig Conditional styling rules for points
imageDataSourceId Data source ID for retrieving the image
getImageHttpRequestParametersMap HTTP parameters for image fetching
pointsDataSourceId Data source ID for retrieving points
getPointsHttpRequestParametersMap HTTP parameters for points fetching
positionXFieldName Field name for X coordinate
positionYFieldName Field name for Y coordinate
keyFieldName Field name for unique point identifier
displayFieldName Field name for tooltip display text
events Configurable events the component can trigger
ON_IMAGE_POINT_CLICK (Events) Event when a point is clicked
ON_IMAGE_CLICK (Events) Event when the image is clicked
ON_IMAGE_POINT_DRAG_ENDED (Events) Event when a point drag ends
ON_IMAGE_POINT_VIEWER_CONTEXT_MENU_ACTION (Events) Event when a context menu action is selected
ON_GLOBAL_PARAMETERS_CHANGE (Events) Event when global parameters change
ON_INIT (Events) Event when the component is initialized
ON_DESTROY (Events) Event when the component is destroyed
contextMenuLabel Text label for context menu actions
visibilityPolicySetId Policy set ID controlling visibility
displayConditions Rules for showing or hiding the component
dataTestId Identifier for automated testing
enableAsHotspot Enables guided tour hotspot
guidedTourHotSpotTitle Title for guided tour hotspot
guidedTourHotSpotDescription Description for guided tour hotspot

Structure

(Configured in General Properties)

(Configured in Visual Properties)

(Configured in Visibility)

Datasource

(Configured in Datasource)

Data Allocation

(Configured in Datasource)

Point with data

Styling

(Configured in Visual Properties)

Actions & Variants

(Configured in Events)

(Configured in Visual Properties)

Tests

(Configured in Testing Hooks)

Authorization

(Configured in Authorization)

Links

Guidelines

Points Data Structure

The Points Data Source should return an array of objects, where each object represents a point on the image.

Required Format

[
  {
    "<positionXFieldName>": <x_coordinate>,
    "<positionYFieldName>": <y_coordinate>,
    "<keyFieldName>": <unique_identifier>,
    "<displayFieldName>": <display_text>
    // Additional fields for thresholds if needed
  }
]

Field Descriptions

Example Data Structure

[
  {
    "xPos": 100,
    "yPos": 150,
    "pointId": "point1",
    "label": "Control Valve",
    "status": "normal",
    "temperature": 72
  },
  {
    "xPos": 250,
    "yPos": 200,
    "pointId": "point2",
    "label": "Pressure Gauge",
    "status": "warning",
    "temperature": 95
  },
  {
    "xPos": 400,
    "yPos": 300,
    "pointId": "point3",
    "label": "Flow Meter",
    "status": "critical",
    "temperature": 120
  }
]

Nested Properties Support

The component supports accessing nested properties using dot notation.

Example with Nested Properties
[
  {
    "metadata": {
      "position": {
        "x": 100,
        "y": 150
      }
    },
    "id": "point1",
    "details": {
      "name": "Control Valve"
    }
  }
]
Configuration for nested fields

Usage

Sizing & Layout

Color & Contrast

Tooltips

Visibility & Authorization

Content & Localization

Dos & Don’ts

Do Don’t Article setting(s)
Bind both image and points from datasources so overlays match current data. Mix a hardcoded image with dynamic points from another source. imageDataSourceId, getImageHttpRequestParametersMap, pointsDataSourceId, getPointsHttpRequestParametersMap
Map coordinates and identity explicitly. Assume default field names. positionXFieldName, positionYFieldName, keyFieldName
Use exclusive rules for visual states. Overlap thresholds that cause flicker. thresholdConfig
Keep hover text short and clear. Cram long descriptions into hover. displayFieldName
Capture add-point coordinates on image click. Infer coordinates from unrelated UI. ON_IMAGE_CLICK
Persist edited positions when drag ends. Leave position changes uncommitted. ON_IMAGE_POINT_DRAG_ENDED
Offer explicit per-point actions. Overload single-click with many meanings. contextMenuLabel, ON_IMAGE_POINT_VIEWER_CONTEXT_MENU_ACTION
Choose a predictable sizing mode. Stretch/crop unpredictably. resizeImageStrategy, width, height, widthAuto, heightAuto
Hide the viewer until prerequisites are met. Show an empty/misleading canvas. displayConditions
Restrict sensitive imagery to authorized users. Expose restricted maps to all users. visibilityPolicySetId
Expose a stable automation hook. Use brittle DOM selectors. dataTestId
Localize onboarding copy. Ship a single-language tour. enableAsHotspot, guidedTourHotSpotTitle, guidedTourHotSpotDescription

Accessibility