Members
-
readonlyheight
-
模型高度
Properties:
Type Description number -
readonlyID
-
模型ID
Properties:
Type Description number -
readonlylevel
-
模型所在层级
Properties:
Type Description string -
readonlyname
-
模型名称
Properties:
Type Description string -
readonlytype
-
模型类型
Properties:
Name Type Description typefengmap.FMType 4096
-
visible
-
模型显示隐藏属性
-
readonlyx
-
模型中点X轴坐标
Properties:
Name Type Description 返回该层的中点X轴坐标number -
readonlyy
-
模型中点Y轴坐标
Properties:
Name Type Description 返回该层的中点Y轴坐标number -
readonlyzoomRange
-
模型比例尺范围属性
Properties:
Type Description object
Methods
-
clearTopImage()
-
移除顶面贴图
-
flash(color)
-
闪烁
Name Type Description colorstring | number 颜色值
-
getBound(){Object}
-
获取模型边界
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 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(param)
-
添加顶面贴图
Name Type Description paramjson Name Type Description mapCoordjson 地图坐标
imagestring 贴图图片路径
offSetarray 贴图图片偏移值。[offsetx,offsety]
sizearray 贴图图片尺寸。[width,height]
anglenumber 旋转角度
-
stopFlash()
-
取消闪烁