This topic describes the chart style of the scatter layer and the meaning of each configuration items.
Chart Style
The scatter layer is a sub-component of 3D Earth. It supports independent styles and data configurations, including the size, color, type, longitude, and latitude of the scatter. It can represent the point data information at a geographic location in the form of scatter.
Settings Panel
- Search for Configurations: In the right-side panel of Canvas Editor, click the Settings tab, and click Search for Configurations in the upper-right corner. Enter the required configuration item in the search box, and click the search icon to quickly locate the configuration item. Fuzzy match is supported. For more information, see Search for asset configurations.
Height: the height of the scatter layer relative to the spherical surface of the map. Valid values: 3 to 10.
Animation Speed: the animation speed of the scattered dots. Valid value: 0 to 0.1.
Transparency: the transparency of the scatter layer. Valid values: 0 to 1.
Data classification: The data is divided into two to seven data levels based on the size of
value
field values. This prevents rendering problems caused by large differences invalue
values.Scatter Map: the map style of the scatter layer. You can paste the URL of the map to obtain the map.
Scatter Size (Small to Large): Click the or icon on the right to add or remove a scatter size. Click the or icon to configure the arrangement styles of multiple scatter sizes.
Value: the maximum value of the scatter.
NoteThis configuration items is an array, which is used with data classification. From type 1 to type n, it is set in increments. For example, if type 1 is set to 10, data with
value
values from 0 to 10 will be displayed as the size of 10. If type 2 is set to 20, data withvalue
values from 11 to 20 will be displayed as the size of 20. If the data classification configuration items is set to level 3, then the value of type 3 will be the size of the data value displayedvalue
the data greater than 20.Default Color: If the
type
field in the data is different from the configuration items, the scatter is displayed in the default color.Scatter Type: Click the or icon to add or delete a scatter type. Click the or icon to configure the arrangement style of multiple scatter points. Click the icon to copy the current scatter type configuration and add a scatter type with the same configuration.
Parameter
Description
type
The value of the type corresponds to the
type
field in the data.Color
The color of the lower scatter of this type.
NoteThis configuration items can be an array. You can configure multiple series in this configuration items. The point corresponding to
type
field in the data is rendered with the color under this series. Iftype
fields in the data are not present in this configuration items, they are rendered in the default color.
Data Panel
Configuration field description
Parameter | Description |
| The longitude of the scatter. |
| The latitude of the scatter. |
| The type of the scatter. It defines the color of the scatter together with the configuration items. |
| The numeric value of the scatter. The configuration items defines the scatter size. |
Parameter | Description |
Controlled Mode | If you turn on the switch, data is not requested when a widget is initialized. Data requests are triggered only based on callback IDs or the method configured in Blueprint Editor. If you turn off the switch, data requests are automatically triggered. By default, the switch is turned off. |
Auto Data Request | After you select the Auto Data Request check box, you can enable dynamic polling, and manually specify the polling interval. If you do not select this check box, data is not automatically requested. You must manually refresh the page to request data or use Blueprint Editor or callback ID events to trigger data requests. |
Data Source | In the right-side panel of Canvas Editor, click the Data tab. Click Set next to Static Data. In the Configure Datasource panel, select a data source from the Data Source Type drop-down list. Enter code for data query in the code editor, click Preview Data Response to preview the response of the data source, and then view the response. For more information, see Configure asset data. |
Data Filter | If you select the Data Filter check box, you can convert the data structure, filter data, and perform simple calculations. If you click the plus sign (+) next to Add Filter, you can configure the script for the data filter in the editor that appears. For more information, see Use the data filter. |
Data Response Result | The response to a data request. If the data source changes, you can click the icon next to Data Response Result to view the data response in real time. |
Interaction Panel
This widget does not support interaction events.
Configure interactions in Blueprint Editor
In Canvas Editor, click the icon next to Scatter Layer in the 3D Earth widget list.
Click the icon in the upper-left corner.
In Blueprint Editor, click the Scatter Layer component in the Import Nodes pane. You can view the parameters of the Scatter Layer component on the canvas, as shown in the following figure.
Event
Event
Description
When the data interface request is completed
The event is triggered with the processed JSON data after a data interface request is responded and processed by a filter. For more information about specific data examples, see the Data Response Result section of the Data tab in the right-side configuration panel of the canvas editor.
When a data interface request fails
The event that is returned when a data interface request fails (the request may be due to network problems or interface errors) and is processed by the filter. The event also throws the processed JSON data. For more information about specific data examples, see the Data Response Result section of the Data tab in the right-side configuration panel of the canvas editor.
Policy Action
Policy Action
Description
Request Data Interface
This action is performed to request the server data again. The data sent by an upstream data processing node or layer node is used as a parameter. For example, if the API data source is
https://api.test
and the data passed to the request data interface is{ id: '1'}
, the final request interface ishttps://api.test?id=1
.Import data
After data of a widget is processed in accordance with its drawing format, the widget is imported for redrawing. You do not need to request server data again. For more information about specific data examples, see the Data Response Result section of the Data tab in the right-side configuration panel of the canvas editor.
Display
A widget is shown without the need to specify parameters.
Hide
A widget is hidden without the need to specify parameters.