地形或 3D Tiles 上一条折线的描述。仅应与
GroundPolylinePrimitive 一起使用。
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
包含以下属性的选项:
|
Throws:
-
DeveloperError :至少需要两个位置。
Example:
const positions = Cesium.Cartesian3.fromDegreesArray([
-112.1340164450331, 36.05494287836128,
-112.08821010582645, 36.097804071380715,
-112.13296079730024, 36.168769146801104
]);
const geometry = new Cesium.GroundPolylineGeometry({
positions : positions
});
See:
Members
折线必须遵循的路径类型。有效选项为
ArcType.GEODESIC 和 ArcType.RHUMB。
-
Default Value:
ArcType.GEODESIC
用于插值 options.points 的距离间隔。零表示不插值。
默认值 9999.0 可在 32 位浮点数下达到厘米级精度。
-
Default Value:
9999.0
在创建几何时,是否会在最后一个和第一个线位置之间添加一条线段,使此折线成为一个环。
如果几何只有两个位置,此参数将被忽略。
-
Default Value:
false
屏幕空间宽度(以像素为单位)。
Methods
将提供的实例存入提供的数组中。
| Name | Type | Default | Description |
|---|---|---|---|
value |
PolygonGeometry | 要打包的值。 | |
array |
Array.<number> | 要打包到的数组。 | |
startingIndex |
number |
0
|
optional 数组中开始打包元素的索引。 |
Returns:
已被打包到的数组
从打包的数组中检索一个实例。
| Name | Type | Default | Description |
|---|---|---|---|
array |
Array.<number> | 打包后的数组。 | |
startingIndex |
number |
0
|
optional 要解包元素的起始索引。 |
result |
PolygonGeometry | optional 用于存储结果的物体。 |
