Class: FMBuilding

FMBuilding

FMBuilding 是加载、 显示、 操作室内外一体化场景中子地图的主类,属于fengmap.map.min.js

Members

readonlybound

Properties:
Name Type Description
bound fengmap.FMBound

边界

readonlybuildingID

Properties:
Name Type Description
buildingID number

建筑ID

floorSpace

Properties:
Name Type Description
floorSpace number

楼层间距

readonlylevel

Properties:
Name Type Description
level number

聚焦楼层

readonlyname

Properties:
Name Type Description
name string

建筑名称

readonlyoverviewMode

Properties:
Name Type Description
overviewMode fengmap.FMOverviewMode

建筑显示模式

visible

Properties:
Name Type Description
visible Boolean

true 显示 false 隐藏

readonlyvisibleLevels

Properties:
Name Type Description
visibleLevels Array

当前显示楼层

Methods

clearThemeExtension()

清空主题扩展

inherited getFloor(level){fengmap.FMFloor|null}

根据id获取楼层

Name Type Description
level int

楼层id

Returns:
Type Description
fengmap.FMFloor | null

inherited getFloorInfos(){Array}

获取所有楼层的信息

Returns:
Type Description
Array

inherited setLevel(options)

设置地图聚焦楼层等级,如果聚焦楼层不在显示楼层范围内,则修改显示楼层,修改规则:1. 显示单楼层时,则切换显示楼层为聚焦楼层 2. 显示楼层为多层时,则把聚焦楼层添加到显示楼层中

Name Type Description
options Object

设置聚焦楼层参数

Name Type Description
level int

楼层等级

animate boolean

是否开启动画,true:开启;false:不开启.默认开启

duration number

动画持续时间

callback function

开启动画时,该函数返回当前执行的动画单元,动画单元可以对当前动画进行基本操作,详细 { @link fengmap.FMAnimation }

finish function

动画完成回调函数

setTheme(themeID)

切换主题

Name Type Description
themeID

setThemeExtension(data)

设置主题扩展

Name Type Description
data json

主题数据

inherited setVisibleLevels(levels, callback)

设置显示楼层

Name Type Description
levels Array

楼层数组

callback

inherited traverse(callback)

遍历返回子节点

Name Type Description
callback