Create virtual tours by linking multiple panoramas
| Name | Type | Description |
|---|---|---|
psv |
PSV.Viewer | |
options |
PSV.plugins.VirtualTourPlugin.Options | optional |
Extends
Members
-
Available events
-
-
-
In client mode all the nodes are provided in the config or with the
setNodesmethod -
-
In GPS mode each node is globally positionned and the links are automatically computed
-
-
In manual mode each link is positionned manually on the panorama
-
-
-
In server mode the nodes are fetched asynchronously
-
-
-
Unique identifier of the plugin
-
-
psv PSV.Viewer readonly inherited overrides
Reference to main controller
-
Methods
-
destroy () package overrides
-
-
init () package overrides
-
-
Tests if running in 3D mode
-
Returns:
Type Description boolean -
Tests if running in GPS mode
-
Returns:
Type Description boolean -
Tests if running in server mode
-
Returns:
Type Description boolean -
Changes the current node
-
Name Type Default Description nodeIdstring fromLinkPSV.plugins.VirtualTourPlugin.NodeLink null optional Returns:
Type Description Promise.<boolean> resolves false if the loading was aborted by another call -
Sets the nodes (client mode only)
-
Name Type Description nodesArray.<PSV.plugins.VirtualTourPlugin.Node> startNodeIdstring optional Throws:
-
when the configuration is incorrect
- Type
- PSV.PSVError
-
Type Definitions
-
Style of the arrow in 3D mode
-
Properties:
Name Type Argument Default Description colorstring <optional>
0xaaaaaa hoverColorstring <optional>
0xaa5500 outlineColornumber <optional>
0x000000 scaleArray.<number> <optional>
[0.5,2] -
PSV.plugins.VirtualTourPlugin.GetNode (nodeId)PSV.plugins.VirtualTourPlugin.Node | Promise.<PSV.plugins.VirtualTourPlugin.Node>
Function to load a node
-
Name Type Description nodeIdstring Returns:
Type Description PSV.plugins.VirtualTourPlugin.Node | Promise.<PSV.plugins.VirtualTourPlugin.Node> -
Definition of a single node in the tour
-
Properties:
Name Type Argument Description idstring unique identifier of the node
panorama* linksArray.<PSV.plugins.VirtualTourPlugin.NodeLink> <optional>
links to other nodes
positionArray.<number> <optional>
GPS position (longitude, latitude, optional altitude)
panoDataPSV.PanoData | PSV.PanoDataProvider <optional>
data used for this panorama
sphereCorrectionPSV.SphereCorrection <optional>
sphere correction to apply to this panorama
namestring <optional>
short name of the node
captionstring <optional>
caption visible in the navbar
descriptionstring <optional>
description visible in the side panel
thumbnailstring <optional>
thumbnail for the gallery
markersArray.<PSV.plugins.MarkersPlugin.Properties> <optional>
additional markers to use on this node
-
Data associated to the "node-changed" event
-
[fromNode] - The previous node
-
PSV.plugins.VirtualTourPlugin.NodeLink PSV.ExtendedPosition
Definition of a link between two nodes
-
Properties:
Name Type Argument Description nodeIdstring identifier of the target node
namestring <optional>
override the name of the node (tooltip)
positionArray.<number> <optional>
override the GPS position of the node
markerStylePSV.plugins.MarkersPlugin.Properties <optional>
override global marker style
arrowStylePSV.plugins.VirtualTourPlugin.ArrowStyle <optional>
override global arrow style
-
Properties:
Name Type Argument Default Description dataMode'client' | 'server' <optional>
'client' configure data mode
positionMode'manual' | 'gps' <optional>
'manual' configure positioning mode
renderMode'markers' | '3d' <optional>
'3d' configure rendering mode of links
nodesArray.<PSV.plugins.VirtualTourPlugin.Node> <optional>
initial nodes
getNodePSV.plugins.VirtualTourPlugin.GetNode <optional>
startNodeIdstring <optional>
id of the initial node, if not defined the first node will be used
preloadboolean | PSV.plugins.VirtualTourPlugin.Preload <optional>
false preload linked panoramas
rotateSpeedboolean | string | number <optional>
'20rpm' speed of rotation when clicking on a link, if 'false' the viewer won't rotate at all
transitionboolean | number <optional>
1500 duration of the transition between nodes
linksOnCompassboolean <optional>
if the Compass plugin is enabled, displays the links on the compass, defaults to
trueon in markers render modemarkerStylePSV.plugins.MarkersPlugin.Properties <optional>
global marker style
arrowStylePSV.plugins.VirtualTourPlugin.ArrowStyle <optional>
global arrow style
markerLatOffsetnumber <optional>
-0.1 (GPS & Markers mode) latitude offset applied to link markers, to compensate for viewer height
arrowPosition'top' | 'bottom' <optional>
'bottom' (3D mode) arrows vertical position
-
Function to determine if a link must be preloaded
-
Name Type Description nodePSV.plugins.VirtualTourPlugin.Node linkPSV.plugins.VirtualTourPlugin.NodeLink Returns:
Type Description boolean
Events
-
Triggered when the current node changes
-
Name Type Description nodeIdstring -
Triggered when the current node is changed
-
Name Type Description nodeIdstring dataPSV.plugins.VirtualTourPlugin.NodeChangedData