深浅模式
Line 线
sh
npm install @poggi/geography-primitive
pnpm add @poggi/geography-primitive
yarn add @poggi/geography-primitive基本用法
通过Line构建一条线
loading
贴地面
面可以与Terrain结合
loading
API
Attributes
| 属性名 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| properties | 自定义数据集 | any | - |
methods
constructor(options: ILineConstructorOptions)
构造函数
Interfaces
ILineConstructorOptions
| 属性名 | 说明 | 类型 | 是否必选 | 默认值 |
|---|---|---|---|---|
| positions | 线条构造参数 | Cartesian2[] | 是 | - |
| color | 线条颜色 | Color | 是 | - |
| width | 宽度 | number | 否 | 1.0 |
| clampToGround | 是否贴地 | boolean | 否 | false |
| vertexFormat | 定点格式 | VertexFormat | 否 | VertexFormat.DEFAULT |
