深浅模式
Line 线
安装
sh
npm install @poggi/geography-entity
pnpm add @poggi/geography-entity
yarn add @poggi/geography-entity基本用法
通过Line构建一条线
loading
贴地面
线可以与Terrain结合
loading
API
Attributes
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| id | 唯一标识 | string | 随机uuid |
| instance | 图形实例 | Entity | - |
| properties | 自定义数据集 | any | - |
| position | 坐标 | Cartesian3 | (0,0,0) |
methods
constructor(container: Container, options: PolylineGraphics.ConstructorOptions)
构造函数
update(options: Partial<PolylineGraphics.ConstructorOptions>)
修改
lookAtMe(offset?: HeadingPitchRange, height?: number)
摄像机定位于观看改实体
setVisible(visible: boolean)
设置显示状态
destroy()
销毁
