Events

components.PSVHUD.leave-marker

Triggered when the user puts the cursor away from a marker

Parameters
Name Type Description
marker PSVMarker

components.PSVHUD.over-marker

Triggered when the user puts the cursor hover a marker

Parameters
Name Type Description
marker PSVMarker

components.PSVHUD.select-marker

Triggered when the user clicks on a marker. The marker can be retrieved from outside the event handler with module:components.PSVHUD.getCurrentMarker

Parameters
Name Type Description
marker PSVMarker
dblclick boolean

the simple click is always fired before the double click


components.PSVHUD.unselect-marker

Triggered when a marker was selected and the user clicks elsewhere

Parameters
Name Type Description
marker PSVMarker

components.PSVHUD.filter:render-markers-list

Used to alter the list of markers displayed on the side-panel

Parameters
Name Type Description
markers Array.<PSVMarker>
Returns

components.PSVPanel.close-panel

Trigered when the panel is closed


components.PSVPanel.open-panel

Triggered when the panel is opened


components.PSVTooltip.hide-tooltip

Trigered when the tooltip is hidden


components.PSVTooltip.show-tooltip

Trigered when the tooltip is shown


PhotoSphereViewer.autorotate

Triggered when the automatic rotation is enabled/disabled

Parameters
Name Type Description
enabled boolean

PhotoSphereViewer.click

Triggered when the user clicks on the viewer (everywhere excluding the navbar and the side panel)

Parameters
Name Type Description
data PhotoSphereViewer.ClickData

PhotoSphereViewer.dblclick

Triggered when the user double clicks on the viewer. The simple click event is always fired before dblclick

Parameters
Name Type Description
data PhotoSphereViewer.ClickData

PhotoSphereViewer.fullscreen-updated

Triggered when the fullscreen mode is enabled/disabled

Parameters
Name Type Description
enabled boolean

PhotoSphereViewer.gyroscope-updated

Triggered when the gyroscope mode is enabled/disabled

Parameters
Name Type Description
enabled boolean

PhotoSphereViewer.panorama-cached

Triggered when a panorama is stored in the cache

Parameters
Name Type Description
panorama string

PhotoSphereViewer.panorama-load-progress

Triggered while a panorama image is loading

Parameters
Name Type Description
panorama string
progress int

PhotoSphereViewer.panorama-loaded

Triggered when a panorama image has been loaded


PhotoSphereViewer.position-updated

Triggered when the view longitude and/or latitude changes

Parameters
Name Type Description
position PhotoSphereViewer.Position

PhotoSphereViewer.ready

Triggered when the panorama image has been loaded and the viewer is ready to perform the first render


PhotoSphereViewer.render

Triggered on each viewer render, this event is triggered very often


PhotoSphereViewer.size-updated

Triggered when the viewer size changes

Parameters
Name Type Description
size PhotoSphereViewer.Size

PhotoSphereViewer.zoom-updated

Triggered when the zoom level changes

Parameters
Name Type Description
zoomLevel int