getViewpoint
Returns the current positioning of the Viewpoint.
The Viewpoint is an optional visual indicator that includes an arrow icon. The Viewpoint accepts mouse and touch events so that users can move it within the 2D viewer. The Viewpoint is typically used in conjunction with the 3D viewer to show the location and orientation of the 3D viewer camera within the 2D viewer.
Example
Usage
const viewpoint = viewer2d.getViewpoint();Return Value
Current direction, location and rotation of the Viewpoint.
The location height is the height of the last shown storey in meters.
Type |
|---|
Viewpoint |
Viewpoint
Example
{
direction: {
x: 1,
y: 1,
z: 0,
},
location: {
x: -1.0,
y: 50,
z: -1.0,
},
rotation: -90,
};