new fengmap.FMModel()
Members
- 
    
readonlybaseHeight
 - 
    
    
模型底面的离地高度
Properties:
Type Description number  - 
    
readonlybound
 - 
    
    
    
Properties:
Name Type Description boundfengmap.FMBound 边界
 - 
    
readonlyeName
 - 
    
    
英文名称
Properties:
Type Description string  - 
    
readonlyextrudeHeight
 - 
    
    
模型的拉伸高度
Properties:
Type Description number  - 
    
readonlyFID
 - 
    
    
元素FID
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  - 
    
readonlypass
 - 
    
    
    
Properties:
Name Type Description pass路径通行标识
 - 
    
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
- 
    
    
clearTopImage()
 - 
    
    
    
移除顶面贴图
 - 
    
    
inherited dispose()
 - 
    
    
    
废置地图对象
 - 
    
    
flash(color)
 - 
    
    
    
闪烁
Name Type Description colorstring | number 颜色值
 - 
    
    
getArea(){number}
 - 
    
    
    
获取计算的面积
Returns:
Type Description number 面积  - 
    
    
getData(){Object}
 - 
    
    
    
获取模型数据属性
Returns:
Name Type Description ObjectObject 模型的数据属性 Name Type Description IDnumber 数据ID typeIDstring 数据类型ID FIDstring 模型FID heightnumber 模型顶面的离地高度 baseHeightnumber 模型底面的离地高度 extrudeHeightnumber 模型的拉伸高度 namestring 模型名字 eNamestring 模型英文名字 minLevelint 最小显示级别 maxLevelint 最大显示级别 passint 通过标识  - 
    
    
resetBorderColor()
 - 
    
    
    
重置回模型线默认颜色
 - 
    
    
resetColor()
 - 
    
    
    
重置回模型默认颜色
 - 
    
    
setBorderColor(color, opacity)
 - 
    
    
    
设置线颜色
Name Type Description colorstring | int 颜色值
opacitynumber 透明度
 - 
    
    
setColor(color, opacity)
 - 
    
    
    
设置模型颜色
Name Type Description colorstring | number 颜色值
opacitynumber 透明度
 - 
    
    
setTopImage(options)
 - 
    
    
    
添加顶面贴图
Name Type Description optionsjson Name Type Description coordsjson 地图坐标
imagestring 贴图图片路径
offsetarray 贴图图片偏移值。[x,y]
sizearray 贴图图片尺寸。[width,height]
anglenumber 旋转角度
 - 
    
    
stopFlash()
 - 
    
    
    
取消闪烁
 - 
    
    
inherited traverse(callback)
 - 
    
    
    
遍历返回子节点
Name Type Description callback