Class: FMFloor

FMFloor

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

new fengmap.FMFloor()

Members

readonlyalias

该层的别名

Properties:
Type Description
string

readonlybound

Properties:
Name Type Description
bound fengmap.FMBound

边界

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()

清除地板图片

inherited dispose()

废置地图对象

getBound(){Object}

该层的边界点坐标

Deprecated
  • 3.1 .5 版本及以后版本将不可用
    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 返回查询结果。

    setExtentImage(url)

    给地板设置一张图片

    Name Type Description
    url string

    图片url

    inherited traverse(callback)

    遍历返回子节点

    Name Type Description
    callback