Skip to content

KBE3D / KBCore / Cesium / PolylineGraphics / ConstructorOptions

接口: ConstructorOptions

Initialization options for the PolylineGraphics constructor

属性

show?

optional show: boolean | Property

A boolean Property specifying the visibility of the polyline.


positions?

optional positions: Property | Cartesian3[]

A Property specifying the array of Cartesian3 positions that define the line strip.


width?

optional width: number | Property

A numeric Property specifying the width in pixels.


granularity?

optional granularity: number | Property

A numeric Property specifying the angular distance between each latitude and longitude if arcType is not ArcType.NONE.


material?

optional material: Color | MaterialProperty

A Property specifying the material used to draw the polyline.


depthFailMaterial?

optional depthFailMaterial: Color | MaterialProperty

A property specifying the material used to draw the polyline when it is below the terrain.


arcType?

optional arcType: Property | ArcType

The type of line the polyline segments must follow.


clampToGround?

optional clampToGround: boolean | Property

A boolean Property specifying whether the Polyline should be clamped to the ground.


shadows?

optional shadows: Property | ShadowMode

An enum Property specifying whether the polyline casts or receives shadows from light sources.


distanceDisplayCondition?

optional distanceDisplayCondition: Property | DistanceDisplayCondition

A Property specifying at what distance from the camera that this polyline will be displayed.


classificationType?

optional classificationType: Property | ClassificationType

An enum Property specifying whether this polyline will classify terrain, 3D Tiles, or both when on the ground.


zIndex?

optional zIndex: number | Property

A Property specifying the zIndex used for ordering ground geometry. Only has an effect if clampToGround is true and polylines on terrain is supported.

KBE3D @3.0.0 Copyright © 2024-present KBE3D