Some visual components (such as chart components, data components, and text lists, etc.) need to be associated with data for use. The MapDashboard provides a data panel to facilitate adding, viewing, and managing the data involved in these components:

Add Data

Click 'Data' in the left sidebar of the MapDashboard, and click 'Add Data' to add data to the MapDashboard as the data source of components.

Support Format

The MapDashboard currently supports the following forms of data:

  • Map layer: If the layer in the added map component has data records, you can add the data records in the layer.
  • Public data: public data in iPortal Resource Center, including ShapeFile, Excel, CSV, JSON, GeoJSON data, and structured data created in MapStudio and saved in the SuperMap iPortal structured data storage.
  • My data: the user's very own data, including ShapeFile, Excel, CSV, JSON, GeoJSON data, and structured data created in MapStudio and saved in the SuperMap iPortal structured data storage.
  • Service: supports iServer REST map service, iServer REST data service, iServer knowledgeGraph service, iServer address matching service, OGC WFS 2.0 service and third-party services whose response data is GeoJSON/JSON format. Component can preferentially display field aliases when using iServer REST map service and data service.
  • Time-series data/map: supports two types of time data, fixed time period and relative time period (recent time), the data response format supports GeoJSON/JSON, the response result should be an object, and the key of the object is unix timestamp.

Filter Data

Before adding data to a dashboard, you can filter the data by setting conditions to ensure that only data meeting the specified condition is added. Currently, filtering is supported for structured data and REST data services. The specific steps are as follows:

  1. On the 'Add Data' page, select the data you wish to add, then click  icon on the right side of the data name. A filter panel will slide out from the right.
  2. Click the 'Add Condition' button in the upper-right corner of the panel. In the newly generated condition row, set the filter field, operator, and filter value. The system provides a status indicator: a green icon appears before the condition row when it is fully and correctly configured; a yellow icon indicates incomplete information.
  3. If multiple filter conditions are added, you can define the logical relationship between them at the top of the panel, including: 'Every Filter Matches', 'Any Filter Matches', and 'No Filter Matches'. Click the action icon on the right side of an individual condition row to quickly copy or delete that condition. Click the 'Clear' button in the upper-right corner of the panel to remove all set filter conditions at once.
  4. After adding all the filter conditions, click 'Apply' to complete the data filter setting. At this point, the filter icon to the right of the corresponding data name will remain highlighted, indicating that the data has been filtered.

View Data

Click 'Data' in the left sidebar of the MapDashboard, and a list of data currently added to the dashboard will be listed for you to view. Select a data, thus you can preview data in table or in the form of JSON format.

  • Table preview: Preview data in table, support to show or hide part of the column, and support for searching the value of a field.
  • JSON preview: Preview data in JSON format, support to copy code with one-click.

Manage Data

For the data in the data list, you can perform the following operations:

  • Export: Clickicon in the data item and select 'Export' to export the data. You can export spatial data to GeoJSON or CSV format and export non-spatial data to JSON or CSV format. Supported export coordinate systems include: EPSG:4326, EPSG:3857.
  • Field Captions:  Click the 'More' icon on the right side of the data, select 'Field Captions' to change the field name displayed on the current dashboard. Field captions are preferred in charts, text lists, and other components that need to display fields. Note: This operation does not change the field's original name in the data source. When the data is exported, the caption field will be exported as an additional column along with all the existing fields.
  • Rename: Click the 'More' icon on the right side of the data item, and select 'Rename' to rename the data.
  • Delete: Click the 'More' icon on the right side of the data item, select 'Delete' to remove the added data from MapDashboard.
  • Change data source: click on a data item, click on 'URL' to re-select the data.
  • Periodical refresh: Click on the data item to turn on/off the periodical refresh switch. When turning on the periodical refresh function, you can set the refresh interval.
  • Select dataset: For the data of the iSever REST data service type, click on the data item, you are allowed to re-select other datasets of the data service.

Note: When sharing a complete dashboard, please make sure that the data permissions used by the components in the dashboard are public, otherwise the components cannot be displayed normally.