ViewerEvents
Interface: ViewerEvents
Events a WemapViewer emits. Subscribe with viewer.on(...).
Properties
click
click:
ViewerClick
A click that walks nowhere, in navigate mode: above the horizon, on the floor with no node there, or claimed.
heading
heading:
number
Fired when the look heading changes (degrees).
hover
hover:
ViewerClick|null
Where the mouse points on the panorama, in navigate mode; null once it leaves it.
locate
locate:
LocatedPoint
Fired with the position under a click, in locate click mode.
measure
measure:
Measurement
Fired with the distance between two clicks, in measure click mode.
navigate
navigate:
ViewerNode
Fired as soon as a move to a node starts, and again with the node still on screen if its image fails.
ready
ready:
void
Fired once, when the first panorama is on screen.