All Products
Search
Document Center

DataV:how to pass dynamic parameters when a data interface is requested

Last Updated:Apr 18, 2024

This topic describes how to pass dynamic parameters when you request a data interface. This way, you can use the tab list and the regional heating layer of the basic flat map.

Procedure

  1. Log on DataV console.

  2. Select a visualization application and click Edit to go to the Canvas Editor page.

  3. Add the Tab List widget and the Basic Flat Map widget to the canvas.

  4. Click the tab list widget and select a data panel to modify static data.

    [
      {
        "id": 1,
        "content": "610000"
      },
      {
        "id": 2,
        "content": "330000"
      },
      {
        "id": 3,
        "content": "320000"
      }
    ]
  5. In the left-side navigation pane of the Basic Flat Map component, click the Regional Thermal Layer sub-component. In the Data panel, select Geo Boundary GeoJSON Data Interface, set Data Source to API, and enter a URL. image

    https://geo.datav.aliyun.com/areas_v3/bound/geojson?code=:code
  6. In the Layer panel, right-click all widget sets and select Export to Blueprint Editor.

  7. Connect components. image

  8. Configure the processing method of the Serial Data Processing node.

    return { code: data.content };
  9. Click the imageicon in the upper-right corner to preview the results.