Map

The Map portlet shows a geographical map into which markers can be placed based on their longitude and latitude values from the marker basic data. A marker can for example represent a work order from the ERP system. OpenStreetMap is used as the base map.

Basic Data

Internal name - unique string to identify this portlet.

Portlet title - title of the portlet, does not have to be unique.

Checkbox options

  • Enable header - enables the portlet header, ie makes it visible in the portal. It is possible select a header background color by clicking on one of the color in the color palette, remove the color by pressing the X underneath the palette

  • Header background color - select a header background color by clicking on one of the color in the color palette, remove the color by pressing the X underneath the palette

  • Header color text - select a header text color by clicking on one of the color in the color palette, remove the color by pressing the X underneath the palette

Auto Refresh

Auto Refresh - enables the portlet to refresh the data every SS:second. If data has changed in the columns the table wont refresh until the changes are saved or canceled.

Self-Hosting Flows

Self-Hosting Flows - enables the portlet to continue running when the user reaches for another portlet.

Commands

Commands enables the portlet to listen for events sent by other portlets to execute specified commands.

The portlet will listen to the following commands

  • onRowSelected

  • onGenericTreeNodeSelected

  • onRefresh

  • onFilter

The portlet will listen to the following portlets: Specify which portlet the commands above will trigger from. The portlets that appears will be shown with their unique internal name.

Show rows when onRowSelected empty - Tick the box if the portlet is to be populated when no selection is sent from triggering portlets.

Data Source configuration

Data source configuration enables the portlet to execute specified query towards the chosen database connector to fetch data, or fetch data from a workflow.

Fetching data using database query

Data source configuration enables the portlet to execute a specific query to the chosen database connector.

  • Database connector - Select which connector that the query should execute against

  • Your query - Text field where queries can be written

Fetching data using workflows

Workflow option allows for any type of data table to be retrieved as data that the portlet can show.

Read more about Workflow Source in: Workflow source.

Map the data columns that are to be displayed in the portlet.

  • Latitude column - The mandatory unique identifier of the latitude value

  • Longitude column - The mandatory unique identifier of the longitude value

  • Marker identity column - The id of the marker, not mandatory

Default view configuration

When a map has got markers, the default view is to show all markers with maximum possible zoom. It is possible to set a fixed default view by entering values set longitude and latitude values under the Manual tab.

Tick the box Remember current state if the map, position and zoom level, should remain unchanged when the portlet is refreshed.

Flow Configuration

See Flow Configuration in Table Portlet.

Marker Icons Configuration

It is possible to use icons as markers in the Map.

Default Icon - field where a default icon value can be added. Tick the box Show in Legend if the default icon is to be shown there.

Icon rules - add a row here to enter icons with conditions. It is possible to enter multiple conditions. The first condition that an activity fulfills is the icon that will be used as the marker. Us the Add button to add rows, the X on row level to remove. It is possible to configure if the icon is to be shown in the legend or not by setting Show in Legend column to Yes or No.

Marker Coloring Configuration

Basic markers in the Map can be configured in to be displayed different colors. Us the Add button to add rows, the X on row level to remove.

Color rule setup:

  • First value - variable.

  • Func - parameter to consider.

  • Second Value - the value to be measured against the variable.

Overlay Configuration

Overlay map data is fetched from a workflow. The format must be GeoJson.

Select the workflow by ticking the box in the list. Select the output output variables and map the overlay identity column and GeoJSON column.

It is possible to set the overlay map to a default color and to configure different color rules.

Marker Tooltip and Label Configuration

In tooltip configuration enter the text and the variables that are to be seen in the Map tool tip when the cursor hovers above a marker. The Label is the static text shown under the marker

Fields - add the columns where the data mapper is required, for example remove the time stamp when a date is displayed

Tooltip - add the text and variables, using {}, which are to be displayed Label - add the text and variables, using {}, which are to be displayed

Last updated