NavigationManager

类:球体场景导航模式管理器对象,通过ViewerGIS.getNavigationManager()接口获取

Glodon.Bimface.Earth.Viewer.NavigationManager

Methods

getCurrentMode()

获取当前的导航模式及配置内容

Returns:
TypeDescription
Object

返回当前模式及对应的配置项,例 {mode:'FirstPerson',option:{speedFactor: 8, hitDetection: true, gravity: true}}

setOrbitMode()

设置相机环绕观察模式,即默认交互模式

setThirdPersonMode(option)

设置第三人称漫游模式

Parameters:
NameTypeDescription
optionObject

第三人称漫游模式下的配置

movementModeString

移动模式,"Walk":行走模式,"Run":奔跑模式

locationObject

第三人称漫游构件载入时,包围盒底部中心点对应的经纬度高程位置

avatarString

人物形象,"ConstructionWorker":建筑工人,"OfficeMale":办公室男性

hitDetectionBoolean

是否开启漫游碰撞,默认为false

collisionConditionObject

碰撞条件

allBoolean

场景内全部构件(仅支持BIMLayer)

idsArray

由layerId、objectIds、objectData组成的对象数组,例[{layerId:'123', objectIds:['11','22']}]

inSelectionBoolean

设置构件是否参与碰撞,默认为true,即满足条件的构件均参与碰撞;若设为false,则设置的构件不参与碰撞

gravityBoolean

是否开启重力漫游,默认为false