new fengmap.FMLabel(data, map)
| Name | Type | Description | 
|---|---|---|
| data | Object | label数据 | 
| map | fengmap.FMMap | map对象 | 
Members
- 
    readonlybound
- 
    
    
    
Properties:Name Type Description boundfengmap.FMBound 边界 
- 
    readonlyeName
- 
    
    英文名称 Properties:Type Description string 
- 
    readonlyFID
- 
    
    模型ID Properties:Type Description string 
- 
    readonlyheight
- 
    
    模型高度 Properties:Type Description number 
- 
    readonlyID
- 
    
    模型ID Properties:Type Description number 
- 
    readonlylevel
- 
    
    模型所在层级 Properties:Type Description string 
- 
    readonlyname
- 
    
    中文名称 Properties:Type Description string 
- 
    text
- 
    
    显示文字内容 Properties:Name Type Description textstring 
- 
    readonlytype
- 
    
    
    
Properties:Name Type Description typefengmap.FMType 节点类型 
- 
    readonlytypeID
- 
    
    数据类型ID Properties:Type Description string 
- 
    visible
- 
    
    
    
Properties:Name Type Description visibleBoolean true 显示 false 隐藏 
- 
    readonlyx
- 
    
    X轴坐标 Properties:Name Type Description 返回该层的中点X轴坐标number 
- 
    readonlyy
- 
    
    Y轴坐标 Properties:Name Type Description 返回该层的中点Y轴坐标number 
Methods
- 
    
    inherited dispose()
- 
    
    
    废置地图对象 
- 
    
    getData(){Object}
- 
    
    
    获取标记数据属性 Returns:Name Type Description ObjectObject 标记数据属性 Name Type Description IDnumber 数据ID typeIDstring 数据类型ID FIDstring 模型FID heightnumber 高度 namestring 模型名字 eNamestring 模型英文名字 minLevelint 最小显示级别 maxLevelint 最大显示级别 
- 
    
    setText(text)
- 
    
    
    改变label文字 Name Type Description textstring 文字 - Deprecated
- 3.1.0版本及以后版本将不可用
 
- See:
- 
        - fengmap.FMLabel.text
 
 
- 
    
    inherited traverse(callback)
- 
    
    
    遍历返回子节点 Name Type Description callback