new fengmap.FMFloor()
Members
-
readonlyalias
-
该层的别名
Properties:
Type Description string -
readonlybound
-
Properties:
Name Type Description boundfengmap.FMBound 边界
-
readonlyfloorID
-
Properties:
Name Type Description 该层的idstring -
readonlyID
-
该层的ID
Properties:
Type Description number -
readonlylevel
-
该层的层号
Properties:
Type Description number -
readonlyname
-
该层的名称
Properties:
Type Description string -
type
-
该层的类型
Properties:
Name Type Description typenumber 返回地图坐标层类型
-
visible
-
该层显示隐藏属性
Properties:
Type Description boolean -
readonlyx
-
该层的中点X轴坐标
Properties:
Name Type Description 返回该层的中点X轴坐标number -
readonlyy
-
该层的中点Y轴坐标
Properties:
Name Type Description 返回该层的中点Y轴坐标number
Methods
-
clearExtentImage()
-
清除地板图片
-
inherited dispose()
-
废置地图对象
-
getBound(){Object}
-
该层的边界点坐标
- Deprecated
- 3.1 .5 版本及以后版本将不可用
Returns:
Name Type Description boundObject 界限 Name Type Description maxObject 最大坐标 Name Type Description xnumber 最大x坐标 ynumber 最大y坐标 minObject 最小坐标 Name Type Description xnumber 最小x坐标 ynumber 最小y坐标 centerObject 中心坐标 Name Type Description xnumber 中心x坐标 ynumber 中心y坐标 sizeObject 尺寸 Name Type Description xnumber x方向尺寸 ynumber y方向尺寸 -
getLayers(type, reverse){Array}
-
获取全部图层
Name Type Description typefengmap.FMType 获取类型,默认查询全部
reverseBoolean 反向查询
Returns:
Type Description Array 返回查询结果。 -
setExtentImage(url)
-
给地板设置一张图片
Name Type Description urlstring 图片url
-
inherited traverse(callback)
-
遍历返回子节点
Name Type Description callback