new fengmap.FMCADLayer(options)
| Name | Type | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | 
            
            
            json | 
                
                 参数 
  | 
        
Members
- 
    
readonlybuildingID
 - 
    
    
    
Properties:
Name Type Description buildingIDstring 建筑物ID
 - 
    
readonlyheading
 - 
    
    
    
Properties:
Name Type Description headingnumber 旋转角度
 - 
    
height
 - 
    
    
    
Properties:
Name Type Description heightnumber 离地高度
 - 
    
readonlylevel
 - 
    
    
    
Properties:
Name Type Description levelnumber 所在层级
 - 
    
opacity
 - 
    
    
    
Properties:
Name Type Description opacitynumber 透明度
 - 
    
scale
 - 
    
    
    
Properties:
Name Type Description scalenumber 缩放比例
 - 
    
readonlyx
 - 
    
    
    
Properties:
Name Type Description xnumber x坐标
 - 
    
readonlyy
 - 
    
    
    
Properties:
Name Type Description ynumber y坐标
 
Methods
- 
    
    
addTo(floor)
 - 
    
    
    
添加到楼层,一个楼层仅允许添加一个FMCADLayer实例
Name Type Description floorObject 楼层
 - 
    
    
moveTo(options)
 - 
    
    
    
移动到指定位置
Name Type Description optionsObject Name Type Description xnumber 图片地图位置x值,必填
ynumber 图片地图位置y值,必填
finishfunction 移动到指定位置后的回调函数
 - 
    
    
off(type, callback)
 - 
    
    
    
事件注销
Name Type Description typestring 事件类型
callbackfunction 回调函数
 - 
    
    
on(type, callback)
 - 
    
    
    
事件注册
Name Type Description typestring 事件类型
callbackfunction 回调函数
 - 
    
    
remove()
 - 
    
    
    
从楼层中移除
 - 
    
    
rotateTo(options)
 - 
    
    
    
水平旋转至特定角度
Name Type Description optionsjson Name Type Description headingnumber 角度,必填
finishfunction 水平旋转至特定角度后的回调函数
 
Events
- 
    
    
loaded
 - 
    
    
    
FMCADLayer加载完成事件
Name Type Description eventObject 事件返回参数
Name Type Description typestring 事件类型
Example
{ type:"loaded", // 事件类型 }