Methods
Viewpoint

setViewpoint

Sets the location and orientation 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

JS

JS


Parameters

viewpoint

Location and orientation of the Viewpoint.

Type

Required

Object

Yes

Properties

Name

Type

Required

Description

direction

Number or Vector2

Yes

Orientation of the Viewpoint in degrees or normalized vector

location

Vector2

Yes

Position of the Viewpoint



Updated 12 Sep 2024
Did this page help you?