向三维场景中添加流动线。
方法
向三维场景中添加垂直飞线。
createFlyingLine(positions, option) → TrailLine
参数描述:
名称 | 类型 | 描述 |
---|---|---|
positions |
Array | 可选 飞线点。 |
option |
Object | 可选 参数{ time: 3000, //时间(可选) width: 1, //线宽(可选) color: '#ffffff', //线颜色(可选) minHeight: 0, //起始高度(可选) }。 |
返回:
返回一个TrailLine对象。
向三维场景中添加流动线。
参数描述:
名称 | 类型 | 描述 |
---|---|---|
Geometry |
Array | 可选 坐标。 |
timeOrOption |
Number | 可选 持续时间或参数{ time:3000, //时间(可选) width: 10, //线宽(可选) color: '#ff0000', //线颜色(可选) url: 'http://183.162.245.49:82/05sdkdemo/src/static/image/TrailLine.png', //渐变图片链接(可选) clampToGround:true //是否贴地(可选) }。 |
返回:
返回一个Cesium的对象。
向三维场景中添加流动路径。
createPath(center, positions, timeOrOption) → TrailLine
参数描述:
名称 | 类型 | 默认值 | 描述 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
center |
Object | 可选 中心。 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
positions |
Array | 可选 周围点。 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
timeOrOption |
Number | Object |
3000
|
可选
持续时间或参数
|
返回:
返回一个TrailLine对象。
向三维场景中添加流光线图层。
createPathLayer(option) → TrailLine
参数描述:
名称 | 类型 | 描述 | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
option |
Object |
可选
参数。
|
返回:
返回一个TrailLine对象。
向三维场景中添加流动墙。
参数描述:
名称 | 类型 | 描述 |
---|---|---|
Geometry |
Array | 可选 坐标。 |
timeOrOption |
Number | 可选 持续时间或参数{ time:3000, //时间(可选) color: '#ff0000', //线颜色(可选) url: 'http://183.162.245.49:82/05sdkdemo/src/static/image/TrailLine.png', //渐变图片链接(可选) maximumHeights:[10, 10], //顶部高度(可选) minimumHeights:[0, 0], //底部高度(可选) }。 |
返回:
返回一个Cesium的对象。
向三维场景中添加流动墙图层。
createWallLayer(option) → TrailLine
参数描述:
名称 | 类型 | 描述 | ||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
option |
Object |
可选
参数。
|
返回:
返回一个TrailLine对象。
删除
设置polyline的显示隐藏
参数描述:
名称 | 类型 | 描述 |
---|---|---|
b |
boolean | 可选 true|false |