The stream bubble layer is a subcomponent of the basic flat map. It supports independent styles and data configurations, including the size, position, color, animation effect, longitude, and latitude of the bubble. It can be used to represent the point data at a geographic location in the form of stream bubbles. This article describes the meaning of each configuration items of the flow bubble layer.

Settings Panel

Click Stream Bubble Layer below Components. In the dialog box that appears, configure the style and data of the Stream Bubble Layer.
Note If the Flow Bubble Layer component is not available in the component management, you have not added the Flow Bubble Layer component. For more information, see Map Container.
Flow Bubble Layer Configuration 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.
  • Visible Level: Set the visibility level of the flow bubble layer. The flow bubble layer is visible within the specified level range.
  • Default Settings: Set parameters such as the image style path, image size, and icon offset of the stream bubble icon.
    ParameterFeature
    Image PathThe image of the streaming bubble icon.
    • 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 streaming bubble icon.
    Image SizeSet the width and height of the icon. Valid values: 0 to 400. Unit: pixels.
    Icon OffsetThe offset of the icon in the horizontal and vertical directions. Valid values: -400 to 400. Unit: pixels. We recommend that you set it to half the width of the icon for horizontal centering and half the height of the icon for vertical centering.
    Floating Frame OffsetThe offset of the floating frame relative to the horizontal and vertical directions. Valid values: -400 to 400. Unit: px.
    Circle StyleSet the fill color of the circle, the radius value of the circle, the edge color of the circle, and the thickness value of the edge. Click the Eye icon icon to the left of Circle Style to control the display of Circle Style.
  • Frame Settings: You can configure parameters such as the text style, text alignment, and line height.
    ParameterFeature
    Text StyleSet the font, weight, font size, and color of the text in the floating frame. Please refer to the color picker instructions for color modification.
    Text alignmentThe alignment mode of multiple lines of information in a stream bubble. You can select Left-Align, Center, or Right-Align. This is valid only when the info information in the data is set to multi-row.
    Row height ratioSets the row height scale value of the flow bubble float frame.
    MarginsSet the distance between the text in the stream bubble and the four sides of the bubble.
    Background configurationSet the background color, content width, and rounded corner radius of the stream bubble. The larger the value, the more rounded the corner.
    ShadowSet the color, shadow blur, and shadow offset for the horizontal and vertical directions of the stream bubble float box. Valid values: 0 to 50. Unit: px.
  • Animation Settings: You can configure parameters such as the cache, sequence, and number of bubbles for the stream bubble animation.
    ParameterFeature
    CacheIf you turn on the switch, the system automatically caches your bubble data and can customize the number of cached records. When the data changes, the system does not clear the data that you have cached.
    OrderIf you turn on the switch, the system bubbles cyclically in the sequence of data. If you turn off the switch, the system bubbles randomly.
    Number of bubblesThe number of flow bubbles at a time. If the specified number is less than the number of data records, the system uses circular bubbles.
    Tile TimeThe duration of the streaming bubble tiling animation. Unit: s.
    dwell timeThe dwell time of the streaming bubble tiling animation. Unit: s.
    Disappearing TimeThe disappearance time of the streaming bubble tile animation. Unit: s.

Data Panel

Flow Bubble Layer Data Panel V2.x
Table 1. Description
FieldDescription
latThe latitude of the flow bubble.
lngThe longitude of the flow bubble.
infoThe text information of the stream bubble. You can customize the text information. You can use the </br> to wrap the text information. For example, Customize information </br> Customize information.
Table 2. 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 Add to Blueprint Editor icon next to Streaming Bubble Layer in the Basic Flat Map widget.
  2. Click the Blueprint Editor icon icon in the upper-left corner of the page.
  3. In Blueprint Editor, click the Stream Bubble Layer component in the Import Nodes pane. You can view the parameters of the Stream Bubble Layer component on the canvas, as shown in the following figure. Flow Bubble Layer V2.x Blueprint Editor Parameters
    • Event
      EventDescription
      When the data interface request is completedThe 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 failsThe 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
      ActionDescription
      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 dataAfter 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.
      DisplayA widget is shown without the need to specify parameters.
      HideA widget is hidden without the need to specify parameters.