Green space

更新时间:
复制 MD 格式

The green space layer is a basemap layer in 3D City Builder that defines the appearance of green areas in procedurally generated cities. You can select either the L1 or L2 data precision level. This topic uses the L2 precision level as an example to describe the configuration items for the green space layer, including settings for shade, environment map intensity, and face types.

In the layer list on the left side of the scene editor, click the Green Space layer, and in the configuration panel, configure the style and data of the Green Space layer.

Note

If Green Space is not in the layer list, it means you have not added the Green Space layer. To add the layer, see Add a sub-widget.

Style panelimage.png

  • General: Configure the general parameters for the green space. These parameters are available only when the data precision is set to L2.

    Parameter

    Description

    Shade

    Set the shade style for the green space. Turn the Cast Shadow switch on or off to control the shade effect.

  • Graphics: Configure the graphic style for the green space.

    Parameter

    Description

    Top Face

    Set the style parameters for the top face of the L2 precision green space. You can adjust the UV tiling values on the x-axis and y-axis, base color, base color map, roughness value, roughness map, metalness value, metalness map, normal map, ambient occlusion map intensity, ambient occlusion map, emissive color, and emissive map.

    Note
    • Only PNG and JPG image formats are supported for textures.

    • The style parameters for the top face of the L2 precision green space include three types: Blend, Blend Layer A, and Blend Layer B.

    Edge

    Set the style parameters for the edge of the green space. This is configurable only when the green space is set to L2 data precision. You can adjust the UV tiling values on the x-axis and y-axis, base color, base color map, roughness value, roughness map, metalness value, metalness map, normal map, ambient occlusion map intensity, ambient occlusion map, emissive color, and emissive map.

    Note

    Maps must be PNG or JPG images.

Data panelimage.png

Reselect Data: In the data panel, click Reselect Data to open the Select Range dialog box, where you can reselect the data range for the green space layer only. For more information, see the procedure for selecting a scene range in Create a scene using official basemap data.

Refresh Data: Refresh the data in the data panel.

Blueprint interaction

  1. In the layer list on the left of the scene editor, click the Export to Blueprint Editor icon to the right of Green Space.

  2. Click the Blueprint icon icon in the upper-left corner of the page.

  3. On the blueprint editor configuration page, click the Green Space layer in the import node bar. The canvas then displays the configuration parameters for the green space layer, as shown in the following figure.

    • Events

      Event

      Description

      When Data Request Is Complete

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

      Rendering Complete

      An event that is triggered when the green space widget finishes rendering. It returns data of the object type. This is configurable only when the green space is set to L2 data precision.

    • Actions

      Action

      Description

      Request data API

      Requests server-side data again. Data from input data processing nodes or layer nodes is passed as parameters. For example, if a component's API data source is https://api.test and the data passed to the Request data API action is { id: '1'}, the final API request is https://api.test?id=1.

      Import data API

      After the data is processed in the format required for component rendering, the data is imported to redraw the component. You do not need to request server-side data again. For a data example, see the Data tab of the configuration panel to the right of the component in the canvas editor, and view the Data Response Result area.

      Show component

      Shows the component. No parameters are required.

      Hide component

      Hides the component. No parameters are required.