new Wall(viewer, opt)
动态墙
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
viewer |
Glodon.CIMCube | CIMCube实例 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
opt |
Object | 动态墙特效参数
Properties
|
Methods
-
createWall()
-
创建墙。
-
dispose()
-
释放资源
-
getWallGraphics()
-
获取墙图形。
Returns:
- Type
- Object
-
hide()
-
隐藏
-
setPathData(_pathList)
-
设置动态墙数据
Parameters:
Name Type Description _pathListArray 路径{lon,lat,height} -
show()
-
显示
-
updateMyOption(opt)
-
更新参数。
Parameters:
Name Type Description optObject 参数。 Properties
Name Type Argument Default Description staticsWallBoolean 是否静态墙。 flylineWidthNumber 飞线宽度。 flylineLengthNumber 飞线长度。 flylineDirectionString 飞线方向。 flylineSpeedNumber 飞线速度。 flylineColorNumber 飞线颜色。 imageUrlString 图片地址。 durationNumber 时长。 directionString 方向。 stripeNumber 条纹数。 colorColor 颜色。 onlyWallGraphicsBoolean 仅墙图形。 successiveBoolean 是否连续。 decayFactorNumber 衰减系数。 speedFactorNumber 速度系数。 blendRatioNumber 混合比例。 expandingBarrierBoolean 扩展屏障。 heightNumber <optional>
50 高度。 stripSpacingNumber 条带间距。 expandSpeedNumber 扩展速度。 repeatedBoolean 是否重复。 spreadCenterCartesian3 扩散中心。 spreadTimeNumber 扩散时间。 spreadRepeatBoolean 扩散重复。 spreadRadiusNumber 扩散半径。 spreadGradualNumber 扩散渐变。 layerObject 图层。 flylineBoolean 飞线。 pathListArray 路径列表。 -
updateOption(opt)
-
更新参数
Parameters:
Name Type Description optObject 动态墙特效参数 Properties
Name Type Argument Default Description pathListArray 路径{lon,lat,height} imageUrlString 图片路径 heightNumber <optional>
50 墙的高度 blendRatioNumber <optional>
1 数值代表颜色的融合程度,范围为0-1,代表color颜色不参与融合 successiveBoolean <optional>
true 一种特效,循环完成后会暂停一段时间 colorColor 墙的颜色 durationNumber 动画时长 directionString 动画方向;x:水平正方向,y:垂直正方向;-x:水平逆方向;-y:垂直逆方向; stripeNumber <optional>
1 波浪次数 decayFactorNumber <optional>
0 逐渐的颜色衰减或者加强 speedFactorNumber <optional>
1 运动轨迹曲线;大于1:先慢后快;小于1:先慢后快;线性匀速运动 staticsWallBoolean <optional>
false 是否静态墙 flylineBoolean <optional>
false 飞线特效开启 flylineWidthNumber <optional>
8 飞线宽,单位米 flylineLengthNumber <optional>
100 飞线长度,单位m flylineDirectionString <optional>
"y" 飞线动画方向;x:水平正方向,y:垂直正方向;-x:水平逆方向;-y:垂直逆方向 flylineSpeedNumber <optional>
1 飞线速度 flylineColorNumber 飞的颜色