Vegetation is a basemap layer in 3D City Builder. It supports independent configurations for style and data, such as vegetation shadows and model mappings. This topic describes the configuration items for the vegetation layer.
In the layer list on the left of the scene editor, click the Vegetation layer to open the configuration panel. In the panel, you can configure the style and data for the Vegetation layer.
If the Vegetation layer is not in the layer list, this indicates that the Vegetation layer has not been added. To add the layer, see Add a sub-widget.
Style panel
General: Configures the general parameters for the vegetation layer.
Parameter
Description
Shadow
Set the shadow style for the vegetation, including the LOD threshold and whether to cast shadows.
LOD threshold: Drag the slider to set the level of detail (LOD) threshold for the vegetation. The value ranges from 1 to 5.
Cast shadow: Turn on or off the Cast shadow switch to control the shadow effect of the vegetation.
Model: Configures the model style for the vegetation.
Parameter
Description
LOD switch coefficient
Set the LOD switch coefficient. The value ranges from 5 to 1000.
Model mapping
Click the
or
icon to the right of Model Mapping to add or delete a model mapping. Click the
or
icon to configure the arrangement of multiple model mappings. Click the
icon to copy the currently selected model mapping and add a new model mapping with the same configuration.Model resource link: The resource URL of the model mapping.
Scaling size: Set the scaling ratio of the model mapping in the x, y, and z directions. The value ranges from 0.01 to 100.
Data panel
Reselect data: Click Reselect data to open the Select Range dialog box. In the dialog box, you can select a new data range that applies only to the vegetation layer. For more information, see the steps for selecting a scenario area in Create a scene using official basemap data.
Refresh Data: Refreshes the data in the data panel.
Blueprint interaction
In the Scene Editor, click the
icon to the right of the Vegetation layer in the layer list on the left.Click the
icon in the upper-left corner of the page.On the blueprint editor page, click the Vegetation layer in the import node bar. The configuration parameters for the vegetation blueprint node appear on the canvas, as shown in the following figure.
Events
Event
Description
When data API request is complete
An event triggered after a data API request returns a response and the response is processed by a 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 on the right of the canvas editor.
Actions
Action
Description
Request data API
Rerequests server-side data. Data from an input data processing node or a layer node is used as a parameter. For example, if the vegetation layer is configured with an API data source of
https://api.testand the data passed to the Request data API action is{ id: '1'}, the final requested API ishttps://api.test?id=1.Import data API
Once the data is formatted for the component, you can import and redraw it without requesting data from the server-side again. For specific data examples, see the Data Response Result area on the Data tab of the configuration panel 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.
icon in the upper-left corner of the page.