S3M pipe network

更新时间:
复制 MD 格式

The S3M pipe network is a layer in 3D City Builder that supports independent style and data configurations, including general and interaction settings. This topic describes the configuration items for the S3M pipe network layer.

In the layer list on the left of the scene editor, click the S3M Pipe Network layer to configure the style and data of the S3M Pipe Network layer in the configuration panel.

Note
  • This widget is available only in DataV Premium Edition. To use this widget, you must upgrade to the Premium Edition.

  • If the S3M Pipeline layer is not in the layer list, it means you have not added the S3M Pipeline layer. See Add a sub-widget to add it.

Style panel

  • Search Configuration: To quickly find a specific configuration item, click on the Configuration panel in the upper right corner and enter the item's name in the Search Configuration field. The system utilizes a fuzzy match to assist in locating items. For more information, see search configuration items.

  • General

    Parameter

    Description

    Visibility Pixel Weight

    Sets the visibility pixel weight for the S3M pipe network. The value can range from 1 to 100.

    LOD Update Rate

    Sets the Level of Detail (LOD) update rate for the S3M pipe network. The value can range from 1 to 100.

  • Interaction

    Parameter

    Description

    Mouse Interaction

    Turn on this switch to view options for iServer interaction, highlight color, and transparency. If you turn off this switch, these options are hidden. The iServer interaction takes effect only when the `interactive_url` field exists in the data source.

Data panel

Parameter

Description

url

The 3D service URL for the S3M pipe network. For example, `//%/realspace/datas/%/config`.

interabtive_url

The data service URL for the S3M pipe network. For example, `//%/realspace/services/%/rest/data`.

Configuration Item

Description

Controlled Mode

Turn on the switch to prevent the widget from requesting data upon initialization. Data is requested only through a callback ID or a method configured in the blueprint editor. Turn off the switch to allow automatic data update requests. The switch is off by default.

Automatic Update Request

Select this option to enable dynamic polling and manually set the polling frequency. If you clear this option, data is not updated automatically. You must manually refresh the page or trigger data update requests using the blueprint editor or callback ID events.

Data Source

Click Configure Data Source. In the Set Data Source panel, you can modify the data source type and data query code, preview the data source return results, and view the data response.

Data Result

Displays the response result of a data request. When the data source changes, click the 刷新图标 icon on the right to view the real-time data response.

Note

You can also use the layer data API as a block data API to configure more data source types in the data dashboard or to interact with data from common chart widgets. For more information, see One-click generation of block APIs.

If you created your 3D City Builder project in Spatial Data Project mode and the project contains data primitive layer content, you can use the Spatial Build Data Source to obtain spatial map data when you configure the data panel in the scene editor. The steps are as follows:

  1. In the layer configuration panel, select the Data tab. Click the Data Source Type drop-down list at the bottom of the panel and select Spatial Build Data Source.

  2. From the Data Project drop-down list at the bottom of the panel, select an existing data project from the spatial build platform.

  3. After you select a data project, select a matching dataset from the Dataset drop-down list.

    Note

    If no configurable data types are available for the Data Project and Dataset configuration items, click Go to Spatial Build Platform to Manage Data in the panel to configure data in the spatial build platform. For more information, see Overview of spatial data management.

Blueprint interaction

  1. In the layer list on the left side of the scene editor, click the Export to Blueprint Editor icon to the right of S3M Pipe Network.

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

  3. On the Blueprint Editor configuration page, click the S3M pipe network layer in the imported nodes bar. The configuration parameters for the S3M pipe network layer appear on the canvas, as shown in the following figure.

    • Events

      Event

      Description

      When a data API request is complete

      This event is triggered after a data API request is returned and processed by the filter. The event also returns the processed data in JSON format. For a data example, see the Data response area on the Data tab of the widget's configuration panel in the canvas editor.

      Left-click

      This event is triggered when you left-click the S3M pipe network. The event returns data of the object type.

    • Actions

      Action

      Description

      Request data API

      Requests data from the server-side again. Data from an input data processing node or a layer node is used as a parameter. For example, if the API data source for the S3M pipe network is set to https://api.test and the data passed to the Request data API action is { id: '1'}, the final request URL is https://api.test?id=1.

      Import data API

      After you process the data into the component's drawing format, you can import the component to redraw it without requesting server-side data again. For a data example, see the Data Response Result area on the Data tab of the configuration panel, which is located to the right of the component in the canvas editor.

      Show widget

      Shows the widget. No parameters are required.

      Hide widget

      Hides the widget. No parameters are required.