---
title: showViewpoint
slug: viewer-2d/methods/showViewpoint
docTags: 
createdAt: 2024-02-21T14:33:53.990Z
---

Adds the **Viewpoint** to the viewer.

:::hint{type="info"}
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

::codepen{url="https://codepen.io/Catenda/embed/BagJxjj"}

## Usage

```javascript
viewer2d.showViewpoint();
```

