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. 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, 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.
- 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: Click the 'three dots' icon 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.