Class: FMFloor

FMFloor

FMFloor 楼层类, 属于fengmap.map.min.js

new fengmap.FMFloor()

Members

readonlyalias

该层的别名

Properties:
Type Description
string

readonlyfloorID

Properties:
Name Type Description
该层的id string

readonlyID

该层的ID

Properties:
Type Description
number

readonlylevel

该层的层号

Properties:
Type Description
number

readonlyname

该层的名称

Properties:
Type Description
string

type

该层的类型

Properties:
Name Type Description
type number

返回地图坐标层类型

visible

该层显示隐藏属性

Properties:
Type Description
boolean

readonlyx

该层的中点X轴坐标

Properties:
Name Type Description
返回该层的中点X轴坐标 number

readonlyy

该层的中点Y轴坐标

Properties:
Name Type Description
返回该层的中点Y轴坐标 number

Methods

clearExtentImage()

清除地板图片

getBound(){Object}

该层的边界点坐标

Returns:
Name Type Description
bound Object 界限
Name Type Description
max Object 最大坐标
Name Type Description
x number 最大x坐标
y number 最大y坐标
min Object 最小坐标
Name Type Description
x number 最小x坐标
y number 最小y坐标
center Object 中心坐标
Name Type Description
x number 中心x坐标
y number 中心y坐标
size Object 尺寸
Name Type Description
x number x方向尺寸
y number y方向尺寸

getLayers(type, reverse){Array}

获取全部图层

Name Type Description
type fengmap.FMType

获取类型,默认查询全部

reverse Boolean

反向查询

Returns:
Type Description
Array 返回查询结果。

getNodes(type){Array}

获取全部节点

Name Type Description
type fengmap.FMType

获取类型,默认查询全部

Returns:
Type Description
Array 返回查询结果,[{type:fengmap.FMType,children:[]}]

setExtentImage(url)

给地板设置一张图片

Name Type Description
url string

图片url

inherited traverse(callback)

遍历子类

Name Type Description
callback