new fengmap.FMLocationMarker(options)
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | 
            
            
            json | 
                
                
                
  | 
        
Members
- 
    
readonlybound
 - 
    
    
    
Properties:
Name Type Description boundfengmap.FMBound 边界
 - 
    
height
 - 
    
    
离地高度
Properties:
Name Type Description heightnumber 离地高度
 - 
    
level
 - 
    
    
    
Properties:
Name Type Description levelnumber 楼层等级
 - 
    
size
 - 
    
    
    
Properties:
Name Type Description size图片尺寸
 - 
    
readonlytype
 - 
    
    
    
Properties:
Name Type Description typefengmap.FMType 节点类型
 - 
    
url
 - 
    
    
    
Properties:
Name Type Description url路径
 - 
    
visible
 - 
    
    
    
Properties:
Name Type Description visibleBoolean true 显示 false 隐藏
 - 
    
readonlyx
 - 
    
    
    
Properties:
Name Type Description xnumber 坐标
 - 
    
readonlyy
 - 
    
    
    
Properties:
Name Type Description ynumber 坐标
 
Methods
- 
    
    
addTo(map)
 - 
    
    
    
添加到map中
Name Type Description mapfengmap.FMMap 地图
 - 
    
    
moveTo(options){fengmap.FMAnimation}
 - 
    
    
    
动画移动marker到指定位置
Name Type Description optionsjson Name Type Description xnumber 地图x坐标
ynumber 地图y坐标
levelnumber 楼层id
animateBoolean 是否需要动画,默认false
durationnumber 移动到指定位置所用的时间(秒)
updatefunction 移动过程中的回调函数
finishfunction 移动到指定位置后的回调函数
buildingIDstring 建筑ID
Returns:
Type Description fengmap.FMAnimation animation 动画类  - 
    
    
remove()
 - 
    
    
    
移除
 - 
    
    
rotateTo(options){fengmap.FMAnimation|undefined}
 - 
    
    
    
水平旋转至特定角度,带动画
Name Type Description optionsjson Name Type Description headingnumber {number} 角度
animateBoolean 是否启动动画 默认 false
durationnumber 动画持续时间
finishfunction 水平旋转至特定角度后的回调函数
Returns:
Type Description fengmap.FMAnimation | undefined animation 返回动画  - 
    
    
inherited traverse(callback)
 - 
    
    
    
遍历返回子节点
Name Type Description callback