Class: Wall

Glodon.CIMCube.Animation.Effect. Wall

动态墙

new Wall(map, opt)

动态墙
Parameters:
Name Type Description
map Glodon.CIMCube CIMCube实例
opt Object 动态墙特效参数
Properties
Name Type Description
pathList Array 路径{lon,lat,height}
imageUrl String 图片路径
height Number 墙的高度
blendRatio Number 数值代表颜色的融合程度,范围为0-1,缺省值为1,代表color颜色不参与融合
successive Boolean 一种特效,循环完成后会暂停一段时间;默认true
color Color 墙的颜色
duration Number 动画时长,默认1s
direction String 动画方向;x:水平正方向,y:垂直正方向;-x:水平逆方向;-y:垂直逆方向;
stripe Number 波浪次数,默认1
decayFactor Number 逐渐的颜色衰减或者加强,默认为0;
speedFactor Number 运动轨迹曲线;大于1:先慢后快;小于1:先慢后快;默认1,线性匀速运动
staticsWall Boolean 是否静态墙,默认false

flyline Boolean 飞线特效开启,默认关闭
flylineWidth Number 飞线宽,单位m,默认10
flylineLength Number 飞线长度,单位m,默认100
flylineDirection String 飞线动画方向,默认为y;x:水平正方向,y:垂直正方向;-x:水平逆方向;-y:垂直逆方向;
flylineSpeed Number 飞线速度,默认1
flylineColor Number 飞的颜色

Methods


dispose()

释放资源

hide()

隐藏

setPathData(pl)

设置动态墙数据
Parameters:
Name Type Description
pl Array 路径{lon,lat,height}

show()

显示

updateOption(opt)

更新参数
Parameters:
Name Type Description
opt Object 动态墙特效参数
Properties
Name Type Description
pathList Array 路径{lon,lat,height}
imageUrl String 图片路径
height Number 墙的高度
blendRatio Number 数值代表颜色的融合程度,范围为0-1,缺省值为1,代表color颜色不参与融合
successive Boolean 一种特效,循环完成后会暂停一段时间;默认true
color Color 墙的颜色
duration Number 动画时长
direction String 动画方向;x:水平正方向,y:垂直正方向;-x:水平逆方向;-y:垂直逆方向;
stripe Number 波浪次数,默认1
decayFactor Number 逐渐的颜色衰减或者加强,默认为0;
speedFactor Number 运动轨迹曲线;大于1:先慢后快;小于1:先慢后快;默认1,线性匀速运动
staticsWall Boolean 是否静态墙,默认false

flyline Boolean 飞线特效开启,默认关闭
flylineWidth Number 飞线宽,单位m,默认10
flylineLength Number 飞线长度,单位m,默认100
flylineDirection String 飞线动画方向,默认为y;x:水平正方向,y:垂直正方向;-x:水平逆方向;-y:垂直逆方向;
flylineSpeed Number 飞线速度,默认1
flylineColor Number 飞的颜色