轨迹图层
Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| layerId | 图层 ID | string | - | - |
| loaderType | 数据类型 | string | 'GLTF' | 'OBJ2' | 'IMAGE' | - |
| url | 3D 模型地址或图片地址 | string | - | - |
| displayLine | 轨迹线绘制类型 | string | 'All' | 'TailLine' | '' | - |
| layerStyle | 轨迹线样式 | LineStyle | - | - |
| trackPoints | 历史轨迹点集合(GeoJSON FeatureCollection (opens new window)), FeatureCollection 中的每个 Feature 应该是点要素(GeoJSON Point Geometry (opens new window)),每个点要素properties中都应包含timestamp字段。 | GeoJSON Points (opens new window) | | |
| position | 位置信息。可以通过改变该值实现模型或图片位置更新。配置项 | object | - | |
| direction | 模型初始方向 (只适用 3D 模型) | object | directionConfig | - |
| unit | 模型的单位 (只适用 3D 模型) | string | 'meter' | 'centimeter' | millimeter | | - |
| scale | 模型的比例大小 (当 fitBounds 为 true 时无效) | number | - | - |
| fitBounds | 模型大小适应地图 | boolean | - | false |
| followCamera | 是否跟随镜头 | boolean | - | false |
| mapTarget | 关联地图容器 ID。如果该参数省略,则默认绑定其父组件为地图组件的 Map 实例或者第一个地图组件的 Map 实例 | string | - | - |
directionConfig
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| front | 正面朝向 | string | 'x' | 'y' | 'z' | '-x' | '-y' | '-z' | - |
| bottom | 底部朝向 | string | 'x' | 'y' | 'z' | '-x' | '-y' | '-z' | - |
positionConfig
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| currentTimestamp | 当前时间戳 | number | - | - |
| nextTimestamp | 下一个点的时间戳 | number | - | - |
| prevTimestamp | 上一个点时间戳 | number | - | - |
| step | 两个点的时间间隔 | number | - | - |