After selecting the basemap, in the "Layer" tab, you can add layers according to your specific needs, such as: add from files, add from search, add from web, you can also create a mark layer, and then draw marks.
Add From File
You can add data to the map by uploading a file. Currently, it supports uploading of delimited text files (*.csv), Excel files (*.xlsx or *.xls), GeoJSON files (*.geojson, *.json), and ShapeFile data compressed into zip packages. The uploaded files must be UTF-8 encoded, and the CSV format files also support GBK encoding.
- Click the "Add layer" button, select "Add From File", you can add data files in the following three ways:
- Click the "Upload" button and select the file to be uploaded from your computer
- Drag and drop the data files in the local disk to the current interface to realize quick uploading
- Click the "My Data" button to select the files to be uploaded from my data or the data shared by others
- Click the "Sample Data" button to select and add the sample data provided in the image above
- Specify parameters:
-
The selected file format is *.xlsx, *.xls, *.csv, and the following parameters can be specified:
-
Type: Location type. Including By coordinates, By administrative divisions, By city & addresses, and By coding. By coordinates is preferre
- By coordinates:DataViz will recognize the coordinate system, longitude and latitude columns of the source file, or you can manually specify the coordinate system, longitude and latitude columns of the source file
- By administrative divisions: Select the administrative division category (province or city) contained in the source file and the corresponding administrative field in the attribute table, and the system will automatically parse the administrative division boundary corresponding to the field value and add it to the map in the form of area features. For example, if you add a map of "China's provincial capitals", add it by administrative division, select the added administrative category as "province", and select the administrative field as "province". After clicking Add, a polygon layer of each province in the country will be added.
- By city & addresses: If the location information is expressed by address in the source file, the city range and address description can be parsed through the address matching service or geocoding service, so as to return the corresponding geographic coordinates and a structured detailed description of the address. Before using this method, the administrator needs to configure the address matching service or geocoding service for the data above, seeSupporting Service-Address Matching Service.After the configuration is complete, select the corresponding city field and address field in the source file, and click Add.
- By coding: Other field information in another table can be associated with the source file through 1-2 common fields. First, you need to select the associated fields in the file to be uploaded (Field 1, Field 2), and then select the table to be associated and the associated fields in the table corresponding to the file to be uploaded (Associated Field 1, Associated Field 2 ), click Add when finished.
-
File CRS: Enter when location "Type" is "By Coordinates". Input the coordinate system of the data file to be added. It supports latitude-longitude coordinate system (EpsgCode:4326), Mercator coordinate system (EpsgCode:3857) and the coordinate system consistent with the current basemap.
-
X/Y Field: Enter when location "Type" is By coordinates. Specify the X and Y coordinate fields, and you can preview the data content through the data table below to help you enter the coordinate fields more accurately
-
Category: Enter when location "Type" is "By administrative division". Support for provinces and cities
-
Field: Enter when location "Type" is "By administrative division". Specify the field representing the administrative division, and preview the data content through the data table below to help you enter the field more accurately
-
File Encode: Supports UTF-8 and GBK encoded files, and needs to be set when the format of the file to be added is *.csv
-
City: Enter when location "Type" is "By address". Specifies the field in the data that represents the city.
-
Address: Enter when location "Type" is "By address". Specifies the field in the data that represents the description of the address.
-
Field 1/2: Enter when location "Type" is "By coding". Specifies a set of fields in the file to be added for association.
-
Associate Table: Enter when location "Type" is "By coding". Specifies the table used to associate the data files to be added, and currently supports the data services that have been added to the current map.
-
Associate Field 1/2: Enter when location "Type" is "By coding". Specify a set of fields for association in the association table. Associate Field 1 corresponds to and associates with Field 1, and Associate Field 2 corresponds to and associates with Field 2.
-
When adding GeoJSON data, ShapeFile data compressed into a zip package, the following parameters can be specified:
-
Create layer: Create as a label layer, you can modify the spatial position and attribute information of elements in the layer, add point, line, area, and text elements; create as a thematic layer, you can modify the visual style. For details, see the production sheet Value thematic maps, segmented thematic maps, etc. See Modify layer style.
-
File CRS: It needs to be set when the file format is GeoJSON. Enter the coordinate system of the data file to be added. It supports the latitude-longitude coordinate system (EpsgCode: 4326), the Mercator coordinate system (EpsgCode: 3857) and the coordinate system consistent with the current basemap.
-
File Encode: Supports UTF-8 and GBK encoded files, and needs to set when adding Shapfile
-
-
Finally, click the "Add" button to upload the file and add to the map. Data items that do not meet the requirements will be automatically filtered out.
Note: DataViz supports geographic coordinate conversion. If the coordinate system of the uploaded data file is inconsistent with the coordinate system of the target basemap, the coordinate system of the data will be automatically converted so that the data can be correctly displayed on the map. Currently, the file source projections that support dynamic projection include: EPSG Code: 4326, EPSG Code: 3857. For the introduction of EPSG Code, please refer to: EPSG Code supported by SuperMap.
Add From Search
You can add REST Map services, REST Data services, ArcGIS VectorTile services, OGC WMTS services, OGC WMS services available in the portal, including services that are uploaded and published in the portal, or registered. After adding the REST data service, you can thematic maps thematic maps.
In the "Add From Search" tab, a list of REST Map services and Data services in the portal will be displayed. You can check the services that need to be added in batches, or add them one by one. Clicking on a service will display a list of datasets contained in the service. Click the service name in the "Select dataset" tab to preview it.
Add From Web
In the "Add From Web" tab, you need to select the service type and input the service address.
Support to add iServer REST Map services, Data services, Datflow services, OGC WMS and WMTS, ArcGIS VectorTile services, Mapbox Style VectorTile services, xyzTile services, online GeoJSON data:
- When accessing the iServer REST map service restricted by token, you need to check the "Token" option, and then enter the service address and token.
- WMTS access request methods include KVP (Key-Value Pair) and RESTful, the default is KVP. For the access method supported by WMTS service, please refer to: WMTS1.0.0.
- Support for modifying styles for layers whose sources are data services and data flow services.
- Use a proxy to access GeoJSON services with cross-origin access restrictions.
Example: Add SuperMap REST Data service
-
Select the "Add From Web" tab, select the type "SuperMap REST Data Service"
- Enter a valid service url in the following format:
- http://<server>:<port>/iserver/services/{data-provider}/rest/data/datasources/{DataSourceName}
- http://<server>:<port>/iserver/services/{data-provider}/rest/data/datasources/{DataSourceName}/datasets/{DataSetName}
For example: https://iserver.supermap.io/iserver/services/data-world/rest/data/datasources/World/datasets/capital
After the data service is added, you can edit the style of the layer, please see: Modify layer style.
Add Marker Layer
Click the "Add Layer" tab and select "Add Marker Layer" to create a new mark layer.
Supports adding points, lines, surfaces, circles, ellipses, rectangles, hexagons, text, and Bezier curves. The specific adding process is as follows:
-
Select the type of marker layer you need to add, and move the mouse to the map to start drawing
-
After drawing, click the mark to edit in the edit pop-up window:
-
For text mark, you can set the font size, color, and text layout
-
For point, line, and polygon, you can add some information for each mark, such as title, description, picture, video link, web link, etc. You can also set the style of the mark. For details, see: Modify layer style.
After adding layers, you can modify the style of the layer, and proceed to the next step as needed. For details, see: Layer settings, Map settings, Controls usage, Attribute table query and editing, Output results.