Logo
Developer

VisioWeb 1.17.2

Class

visioweb.CameraDrivenExplorer

For multi-building maps only, this class allows to set the active building depending on where the camera is headed and its radius.

Constructor

new CameraDrivenExplorer()

This object is constructed by setupMultiBuildingView
Since:
  • 1.8.3
See:

Members summary


Name Description
maxExploreDistance to define explicitly when to switch between global and floor modes. If not set (default:0), a maximum radius will be computed based on building footprints.
panFromUndergroundFloor enable or disable camera-driven exploration from underground floors.

Methods summary


Name Description
setBuildingEnabled enable or disable camera-driven exploration for one or several buildings. When camera-driven exploration is enabled, it's enabled for all buildings in both directions by default.
setEnabled enable or disable camera-driven exploration which allows the user to explore building simply by zooming in their direction. When using camera-driven exploration, building mode is disabled.

Members detail

maxExploreDistance :number

to define explicitly when to switch between global and floor modes. If not set (default:0), a maximum radius will be computed based on building footprints.
Since:
  • 1.8.3
Default Value:
  • 0

panFromUndergroundFloor :boolean

enable or disable camera-driven exploration from underground floors.
Since:
  • 1.8.3
Default Value:
  • false

Methods detail

setBuildingEnabled(value, buildingID, directionopt)

enable or disable camera-driven exploration for one or several buildings. When camera-driven exploration is enabled, it's enabled for all buildings in both directions by default.
Parameters:
Name Type Attributes Default Description
value boolean
buildingID string | Array.<string> to specify some building IDs to enable/disable camera-driven exploration for certain buildings only
direction string <optional>
inout to adjust whether camera-driven exploration should be enabled both towards and from that building, or only in one direction. Expected values are 'in', 'out' or 'inout'
Since:
  • 1.8.3

setEnabled(value)

enable or disable camera-driven exploration which allows the user to explore building simply by zooming in their direction. When using camera-driven exploration, building mode is disabled.
Parameters:
Name Type Description
value boolean
Since:
  • 1.8.3