new fengmap.FMModel()
Members
-
readonlybound
-
Properties:
Name Type Description boundfengmap.FMBound 边界
-
readonlyeName
-
英文名称
Properties:
Type Description string -
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 -
readonlyzoomRange
-
模型比例尺范围属性
Properties:
Type Description object
Methods
-
clearTopImage()
-
移除顶面贴图
-
inherited dispose()
-
废置地图对象
-
flash(color)
-
闪烁
Name Type Description colorstring | number 颜色值
-
getArea(){number}
-
获取计算的面积
Returns:
Type Description number 面积 -
getBound(){Object}
-
获取模型边界
- Deprecated
- 3.1.5 版本及以后版本将不可用
Returns:
Type Description Object 获取模型边界 minX: mbound.minX, maxX: mbound.maxX, minY: mbound.minY, maxY: mbound.maxY -
getData(){Object}
-
获取模型数据属性
Returns:
Name Type Description ObjectObject 模型的数据属性 Name Type Description IDnumber 数据ID typeIDstring 数据类型ID FIDstring 模型FID heightnumber 高度 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