All Products
Search
Document Center

DataV:Trajectory Layer

Last Updated:May 12, 2023

This topic describes the chart styles and the meaning of each configuration items.

Chart Style

The trajectory layer is a sub-component of 3D Earth. It supports independent styles and data configurations. It can use trajectory lines to display the transition effect between two or more geographic locations to simulate motion trajectories. image..png

Settings Panel

image..png
  • Search for Configurations: In the right-side panel of Canvas Editor, click the Settings tab, and click Search for Configurations in the upper-right corner. Enter the required configuration item in the search box, and click the search icon to quickly locate the configuration item. Fuzzy match is supported. For more information, see Search for asset configurations.
  • Layer Height: the height of the trajectory layer relative to the globe. Valid values: 0.1 to 10.

  • Trajectory Length: the length of the trajectory. Valid values: 0 to 1.

  • Trajectory Interval: the interval between repeated movements of the trajectory line. Valid values: 0 to 1.

  • Trajectory Speed: the speed of the trajectory. Valid values: 0 to 0.05.

  • Trace Color: the color of the trace line. For more information, see color picker description.

  • Trajectory Opacity: the transparency of the trajectory. Valid values: 0 to 1.

  • Data classification: The data is divided into two to seven data levels based on the size of value field values. This solves the rendering problem caused by large differences in value values.

  • Track thickness (from thin to thick): Click the 加号图标or 垃圾桶图标icon on the right to add or delete a track type. Click the 横排列图标or 竖排列图标icon to configure the arrangement styles of multiple track thicknesses. Click the 复制图标icon to copy the configuration of the selected type and add a track with the same configuration.

    Trajectory Width: the maximum width of a trajectory object of this type. 轨迹粗细配置

    Note

    This configuration items is an array, which is used with data classification. From type 1 to type n, it is set in increments. For example, if type 1 is set to 10, data with value values from 0 to 10 will be displayed as the size of 10. If type 2 is set to 20, data with value values from 11 to 20 will be displayed as the size of 20. If the data classification configuration items is set to level 3, then the value of type 3 will be the size of the data value displayed value the data greater than 20.

Data Panel

image..png

The data of this component is in the GeoJSON format. For more information about the data format and how to obtain the data, see Map data format.

Configuration field description

Parameter

Description

geometry

Define the type type as "LineString".

coordinates

Defines two or more latitude and longitude coordinate locations. coordinates参数

properties

  • The adcode that defines the start and end points of the trajectory, which are originid (start) and destinationid (end), respectively.

  • Define the value field and use the configuration items Trajectory Width > Trajectory Width to define the thickness of the trajectory line. The default value is 1.

Table 1. Parameters
ParameterDescription
Controlled ModeIf you turn on the switch, data is not requested when a widget is initialized. Data requests are triggered only based on callback IDs or the method configured in Blueprint Editor. If you turn off the switch, data requests are automatically triggered. By default, the switch is turned off.
Auto Data RequestAfter you select the Auto Data Request check box, you can enable dynamic polling, and manually specify the polling interval. If you do not select this check box, data is not automatically requested. You must manually refresh the page to request data or use Blueprint Editor or callback ID events to trigger data requests.
Data SourceIn the right-side panel of Canvas Editor, click the Data tab. Click Set next to Static Data. In the Configure Datasource panel, select a data source from the Data Source Type drop-down list. Enter code for data query in the code editor, click Preview Data Response to preview the response of the data source, and then view the response. For more information, see Configure asset data.
Data FilterIf you select the Data Filter check box, you can convert the data structure, filter data, and perform simple calculations. If you click the plus sign (+) next to Add Filter, you can configure the script for the data filter in the editor that appears. For more information, see Use the data filter.
Data Response ResultThe response to a data request. If the data source changes, you can click the Refresh icon icon next to Data Response Result to view the data response in real time.

Interaction Panel

This widget does not support interaction events.

Configure interactions in Blueprint Editor

  1. In Canvas Editor, find the 3D Earth widget and click the 导出到蓝图编辑器icon on the right side of Track Layer.

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

  3. In Blueprint Editor, click the Trajectory Layer widget in the Added Nodes pane. You can view the parameters in the canvas, as shown in the following figure. image..png

    • Event

      Event

      Description

      When the data interface request is completed

      The event that is thrown after the request is returned and processed by the filter. The event also throws the processed data in the JSON format. For more information about specific data examples, see the Data Response Result section of the Data tab in the right-side configuration panel of the canvas editor.

      When a data interface request fails

      The event that is returned when a request fails at the trace layer (such as a network problem or an interface error) and is processed by the filter. The event also throws the processed JSON data. For more information about specific data examples, see the Data Response Result section of the Data tab in the right-side configuration panel of the canvas editor.

    • Policy Action

      Policy Action

      Description

      Request Data Interface

      This action is performed to request the server data again. The data sent by an upstream data processing node or layer node is used as a parameter. For example, if the API data source is https://api.test and the data passed to the request data interface is { id: '1'}, the final request interface is https://api.test?id=1.

      Import data

      After data of a widget is processed in accordance with its drawing format, the widget is imported for redrawing. You do not need to request server data again. For more information about specific data examples, see the Data Response Result section of the Data tab in the right-side configuration panel of the canvas editor.

      Display Widget

      A widget is shown without the need to specify parameters.

      Hide components

      A widget is hidden without the need to specify parameters.