The point aggregation layer is a subcomponent of the basic flat map. It supports independent style, data, and interaction configuration, including icon configuration, security configuration, and pop-up style. When point aggregation is scaled to a single scatter point, it can represent the point data information at a geographic location in the form of scatter points. This topic describes the meaning of each configuration items of the point aggregation layer.
Parameter
- 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.
- Icon Settings: Set parameters such as the icon size and image style of the scatter.
Parameter Feature Icon Size Sets the size of the icon. Icon Image In the Icon Image section - Move the pointer over the image and click Delete to delete the image. Then, click the image area or drag a local image to the area to add an icon.
- Move the pointer over the image and click Change to upload the local image again.
- You can also enter the URL address of the image to use the image on the remote server as the icon image.
- Circle Configuration: Set parameters such as the radius and color of the inner and outer circles of the point aggregation circle.
Parameter Feature Inner Ring Radius Sets the radius size of the inner circle of the aggregate. Inner Ring Color Sets the color of the inner circle of the aggregate. Please refer to the color picker instructions for color modification. Outer ring radius Sets the size of the radius of the outer ring of the aggregation. Outer ring color Sets the color of the outer ring of the aggregate. Please refer to the color picker instructions for color modification. - Box Style: On the Preview or Publish page, click the Scatter icon. Note To enable the pop-up feature, you must set the info field first.
Parameter Feature Font size Set the font size of the text in the dialog box. The color of the font. Set the color of the text in the dialog box. For more information, see color picker instructions. Font weight Sets the font weight of the text in the dialog box. Font Sets the font of the text in the popup.
The metadata of the filtering table.
| Field | Description |
|---|---|
| id | The number of the scatter. |
| lng | The longitude of the scatter. |
| lat | The latitude of the scatter. |
| value | Optional. The mapping value of the scatter. |
| info | Optional. Click Scatter to view the content of the pop-up window. |
| iconUrl | Optional. The URL of the custom icon. |
| 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 |
Interaction
Click Triggered: Select Enable to enable the widget interaction feature. The sub-component of the point aggregation layer has interactive configurations. When a hash point is clicked, a callback value is thrown. By default, the id and value fields in the data are thrown. For more information, see Configure callback IDs.
Configure interactions in Blueprint Editor
- In Canvas Editor, click the
icon next to Point Aggregation Layer in the Basic Flat Map widget. - Click the
icon in the upper-left corner of the page. - In Blueprint Editor, click the Point Aggregation Layer component in the Import Nodes pane. You can view the configuration parameters of the Point Aggregation Layer component on the canvas.
- Event
Event Description When the Scatter 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 specific data, see Data. Points are triggered by clicks The event that is raised when a hash point at the point aggregation layer is clicked, and the data item corresponding to the scatter point is also raised. - Policy Action
Action Description Request Scatter 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 http://api.testand the data passed to the Request Scatter Data Interface action is{ id: '1'}, the final request interface ishttp://api.test?id=1.Import Scatter Data Interface 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 specific data, see Data. Display Widget A widget is shown without the need to specify parameters. Hide components A widget is hidden without the need to specify parameters.
- Event