new fengmap.FMTextMarker(options)
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | 
            
            
            json | 
                
                 参数 
  | 
        
Members
- 
    
readonlybound
 - 
    
    
    
Properties:
Name Type Description boundfengmap.FMBound 边界
 - 
    
collision
 - 
    
    
是否开启避让效果,默认开启
 - 
    
fillColor
 - 
    
    
    
Properties:
Name Type Description fillColorstring 文字填充色 例如 "255,0,0" 修改需要调用update方法更新
 - 
    
fontSize
 - 
    
    
    
Properties:
Name Type Description fontSizenumber 文字字号 修改需要调用update方法更新
 - 
    
height
 - 
    
    
离地高度
Properties:
Name Type Description heightnumber 离地高度
 - 
    
readonlylevel
 - 
    
    
    
Properties:
Name Type Description levelnumber 楼层等级,初始化完成后可以获取当前值
 - 
    
plateColor
 - 
    
    
    
Properties:
Name Type Description plateColorString 文字背景色 修改需要调用update方法更新
 - 
    
plateStrokeColor
 - 
    
    
    
Properties:
Name Type Description plateStrokeColorString 文字背景色边框 修改需要调用update方法更新
 - 
    
strokeColor
 - 
    
    
    
Properties:
Name Type Description strokeColorString 文字描边颜色 修改需要调用update方法更新
 - 
    
strokeWidth
 - 
    
    
    
Properties:
Name Type Description strokeWidthnumber 文字描边宽度,默认为 1 修改需要调用update方法更新
 - 
    
text
 - 
    
    
    
Properties:
Name Type Description textstring 文字内容, 修改需要调用update方法更新, 换行符为“%rn%”
 - 
    
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 楼层等级
 - 
    
    
inherited 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 返回动画  - 
    
    
inherited remove()
 - 
    
    
    
从楼层中移除
 - 
    
    
inherited traverse(callback)
 - 
    
    
    
遍历返回子节点
Name Type Description callback - 
    
    
update()
 - 
    
    
    
更新marker