new fengmap.FMDynamicModel(options)
| Name | Type | Description | |||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | 
            
            
            json | 
                
                 参数项 
  | 
        
Members
- 
    
readonlybound
 - 
    
    
    
Properties:
Name Type Description boundfengmap.FMBound 边界
 - 
    
readonlyheading
 - 
    
    
    
Properties:
Name Type Description anglenumber 设置z轴旋转
 - 
    
height
 - 
    
    
离地高度
Properties:
Name Type Description heightnumber 离地高度
 - 
    
readonlylevel
 - 
    
    
    
Properties:
Name Type Description levelnumber 楼层等级,初始化完成后可以获取当前值
 - 
    
scale
 - 
    
    
    
Properties:
Name Type Description scalenumber 显示比例
 - 
    
readonlytilt
 - 
    
    
    
Properties:
Name Type Description tiltnumber 设置模型的倾斜角
 - 
    
readonlytype
 - 
    
    
    
Properties:
Name Type Description typefengmap.FMType 节点类型
 - 
    
visible
 - 
    
    
    
Properties:
Name Type Description visibleBoolean true 显示 false 隐藏
 - 
    
readonlyx
 - 
    
    
    
Properties:
Name Type Description xnumber 坐标
 - 
    
readonlyy
 - 
    
    
    
Properties:
Name Type Description ynumber 坐标
 
Methods
- 
    
    
inherited addTo(floor)
 - 
    
    
    
添加到楼层
Name Type Description floorObject 楼层等级
 - 
    
    
getActionNames(){*}
 - 
    
    
    
获取所有动画片段
Returns:
Type Description *  - 
    
    
getModelColor(name){string}
 - 
    
    
    
获取修改后的颜色值
Name Type Description namestring 节点名称
Returns:
Type Description string 颜色值  - 
    
    
modifyModelColor(color, name)
 - 
    
    
    
修改指定节点颜色
Name Type Description colorstring 颜色值
namestring 节点名称
 - 
    
    
moveTo(options){fengmap.FMAnimation}
 - 
    
    
    
动画移动marker到指定位置
Name Type Description optionsObject Name Type Description xnumber 图片地图位置x值,默认对应楼层中心点坐标,必填
ynumber 图片地图位置y值,默认对应楼层中心点坐标,必填
animateboolean 是否需要动画,默认false
durationnumber 移动到指定位置所用的时间(秒)
finishfunction 移动到指定位置后的回调函数
Returns:
Type Description fengmap.FMAnimation animation 返回动画  - 
    
    
remove()
 - 
    
    
    
从楼层中移除
 - 
    
    
rotateTo(options){fengmap.FMAnimation}
 - 
    
    
    
水平旋转至特定角度,带动画
Name Type Description optionsjson Name Type Description headingnumber 角度
animateboolean 是否需要动画,默认false
durationnumber 动画持续时间
finishfunction 移动到指定位置后的回调函数
Returns:
Type Description fengmap.FMAnimation animation 返回动画  - 
    
    
startAction(name, once)
 - 
    
    
    
开始播放模型对象的骨骼动画
Name Type Description namestring 模型对象的骨骼动画name名称
onceboolean 是否只执行一次动画,默认是循环执行
 - 
    
    
stopAction(name)
 - 
    
    
    
停止播放模型对象的骨骼动画
Name Type Description namestring 模型对象的骨骼动画name名称
 - 
    
    
inherited traverse(callback)
 - 
    
    
    
遍历返回子节点
Name Type Description callback