XYZ raster tile

更新时间:
复制 MD 格式

The XYZ raster tile is a global layer in 3D City Builder. It supports independent style and data configurations, including general configurations and graphic styles. This topic describes the configuration items of the XYZ raster tile layer.

In the Layers list on the left side of the Scene Editor, click the XYZ Raster Tile layer to open the Configuration Panel and configure the style and data of the XYZ Raster Tile layer.

Note
  • This widget is available only to users of DataV Professional Edition or later. To use this widget, you must upgrade DataV to the Professional Edition or a later version.

  • If XYZ Raster Tile is not in the layer list, you need to add the XYZ Raster Tile layer. For more information, see Add Child Widget.

Style panelimage.png

  • 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

    Rendering Order

    Sets the rendering order of the XYZ raster tile.

  • Graphics

    Parameter

    Description

    Transparency

    Drag the slider to set the opacity coefficient of the XYZ raster tile. The value ranges from 0 to 1.

    HSB Adjustment

    Sets the HSB values for the XYZ raster tile, including Hue, Saturation, and Brightness.

Data panelimage.png

Parameter

Description

url

The URL of the XYZ raster tile template.

projType

The projection type of the XYZ raster tile.

minZoom

The minimum zoom level of the XYZ raster tile.

maxZoom

The maximum zoom level of the XYZ raster tile.

zoomOffset

The zoom offset of the XYZ raster tile.

rectangle

The data range of the XYZ raster tile.

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 Scene Editor, click the Export to Blueprint Editor icon to the right of XYZ Raster Tile in the Layers list.

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

  3. On the Blueprint Editor configuration page, click the XYZ raster tile layer in the Import Nodes pane. The configuration parameters for the XYZ raster tile 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 the data API request is returned and processed by the filter. The processed data in JSON format is also thrown. For a data example, see the Data Response Result area on the Data tab of the widget's configuration panel on the right of the canvas editor.

    • Actions

      Action

      Description

      Request data API

      Requests server-side data again. Data output from an input data processing node or a layer node is used as a parameter. For example, if an XYZ tile layer is configured with an API data source of 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

      Process the data in the component format and import it to redraw the component. This action does not require a new request for server-side data. For data examples, see the Data tab and view the Data Response area in the configuration panel of the canvas editor.

      Show component

      Shows the component. No parameters are required.

      Hide component

      Hides the component. No parameters are required.