Floor

LM. Floor

楼层,从地图对象中获取。LM.Map

Members

(readonly) centroid :object

Description:
  • 楼层中心点。

Properties:
Name Type Description
x number

X坐标。

y number

Y坐标。

z number

Z坐标。

楼层中心点。

Type:
  • object

(readonly) cname :string

Description:
  • 中文名称,一般与英文相同。

中文名称,一般与英文相同。

Type:
  • string

(readonly) code :string

Description:
  • 唯一编码。

唯一编码。

Type:
  • string

(readonly) ename :string

Description:
  • 英文名称。

英文名称。

Type:
  • string

(readonly) level :number

Description:
  • 级别。至上而下从1开始顺序加1。基础楼层为0,上面的楼层顺序加1,下面的楼层顺序减1。

级别。至上而下从1开始顺序加1。基础楼层为0,上面的楼层顺序加1,下面的楼层顺序减1。

Type:
  • number

visible :boolean

Description:
  • 可见性。

可见性。

Type:
  • boolean

Methods

getLayers(type) → {array.<LM.Layer>}

Description:
  • 获取图层。

Parameters:
Name Type Description
type LM.Type

元素类型。

Returns:

图层数组。

Type
array.<LM.Layer>

setVisible(visible)

Description:
  • 设置可见性。

Parameters:
Name Type Description
visible boolean

true-显示 false-隐藏