All Products
Search
Document Center

DataV:Scatter Layer

Last Updated:May 12, 2023

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. image..png

Settings Panel

image..png
  • 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 in value 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.

    Note

    This 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 with value 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 displayed value the data greater than 20.

  • Default Color: If the type field in the data is different from the Scatter Type > type 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.

    Note

    This 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. If type fields in the data are not present in this configuration items, they are rendered in the default color.

Data Panel

image..png

Configuration field description

Parameter

Description

lng

The longitude of the scatter.

lat

The latitude of the scatter.

type

The type of the scatter. It defines the color of the scatter together with the Scatter Type > type configuration items.

value

The numeric value of the scatter. The scatter size > numeric configuration items defines the scatter size.

Table 1. Parameters
ParameterDescription
Controlled ModeIf 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 RequestAfter 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 SourceIn 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 FilterIf 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 ResultThe response to a data request. If the data source changes, you can click the Refresh icon 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

  1. In Canvas Editor, click the 导出到蓝图编辑器icon next to Scatter Layer in the 3D Earth widget list.

  2. Click the 蓝图图标icon in the upper-left corner.

  3. 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. image..png

    • 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 is https://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.