Class: FMAction

FMAction

FMAction 动画控制类,由FMExternalModel/FMDynamicModel对象getActions方法返回得到,属于fengmap.map.min.js

Members

readonlyduration

原始的动画时长

Properties:
Type Description
number

end

结束动画百分比(0-1)

Properties:
Type Description
number

readonlyfeature

外部模型/动态模型对象

Properties:
Type Description
Object

readonlyname

动画名称

Properties:
Type Description
string

once

是否只执行一次动画,默认是false循环执行

Properties:
Type Description
bool

start

开始动画百分比(0-1)

Properties:
Type Description
number

Methods

pause()

暂停播放动画

play(duration)

播放动画,播放之后,被播放的动画将不再受FMMap(options).autoPlay限制

Name Type Description
duration number

动画持续时长

resume()

恢复播放动画

stop()

停止播放动画