Skip to content

KBE3D / KBCore / Cesium / Polyline

类: Polyline

<div class="notice"> Create this by calling PolylineCollection#add. Do not call the constructor directly. </div>

A renderable polyline.

属性

show

show: boolean

Determines if this polyline will be shown. Use this to hide or show a polyline, instead of removing it and re-adding it to the collection.


positions

positions: Cartesian3[]

Gets or sets the positions of the polyline.

示例

ts
polyline.positions = Cesium.Cartesian3.fromDegreesArray([
    0.0, 0.0,
    10.0, 0.0,
    0.0, 20.0
]);

material

material: Material

Gets or sets the surface appearance of the polyline. This can be one of several built-in Material objects or a custom material, scripted with Fabric

.


width

width: number

Gets or sets the width of the polyline.


loop

loop: boolean

Gets or sets whether a line segment will be added between the first and last polyline positions.


id

id: any

Gets or sets the user-defined value returned when the polyline is picked.


distanceDisplayCondition

distanceDisplayCondition: DistanceDisplayCondition

Gets or sets the condition specifying at what distance from the camera that this polyline will be displayed.

构造函数

构造函数

new Polyline(): Polyline

返回

Polyline

KBE3D @3.0.0 Copyright © 2024-present KBE3D