Skip to content

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