Target viewport
Layer visibility
Called after rendering of a viewport
Viewport where rendering took place
Called before rendering a viewport
Viewport where rendering takes place
Called shortly after the camera has stopped moving
Promise which blocks until the AbstractViewInterface has completed any asynchronous work, independent of whether it rejects or resolves.
Called for mouse clicks and taps
Mouse position
Optional
cursorPos: Vector3The 3D cursor position at the location of the click.
Return true to consume the event, false to pass it on
Called when the context menu is about to be shown
Return context menu items from this method to add them to the context menu.
Return undefined
(or do not implement the method) if you do not want to add an entry from the specific layer.
Return false to prevent the context menu from opening.
Mouse position
List of context menu items
Called for double clicks and double taps
Mouse position
Return true to consume the event, false to pass it on
Called for click-and-hold and touch-and-hold
Mouse position
Return true to consume the event, false to pass it on
Called when the mouse is moved
Mouse position
Called when the mouse wheel is used
Mouse position
Number of wheel ticks, positive for scrolling down, negative for up
Return true to consume the event, false to pass it on
Called after location transition has completed
Transition event
Called when a location transition is started
Transition event
Generated using TypeDoc
A scene layer that displays objects in the 3D scene. This interface serves as a template to construct your own custom data layers. Public methods described in this class act as callbacks to particular events occurring in the view (Main or Map view) to which the scene layer is added.
Note: The mouse or touch event callbacks can also be added to individual THREE.Mesh objects inside data layers. In case of multiple callbacks, Mesh objects are prioritized over data layers. For a complete reference of all of the events supported on THREE.Mesh, see: MouseEventReceiverInterface