---
title: 2D viewer
summary: The Viewer2d, which draws the floor plans BIM.works generated per storey, is being phased out; for new work, show plans in the 3D viewer with an orthographic camera.
order: 35
languages: [javascript]
terms: [viewer, building-storey, object-state-manager]
see-also: [how-to/viewer3d/show-a-floor-plan, explanation/geometry-and-the-viewers]
---

# 2D viewer

```warning
The 2D viewer is being phased out. For a new application, show plans in the 3D viewer in orthographic mode: [[page:how-to/viewer3d/show-a-floor-plan]]. It shows the same storeys and keeps selection, colours and annotations, and it is the viewer that gets new features.
```

The 2D viewer (`@bimworks/viewer2d`) draws the plans BIM.works generated on the server for each [[term:building-storey|building storey]], with WebGL. It connects to the same [[term:object-state-manager|ObjectStateManager]] as the 3D viewer, so visibility, selection and colours work the same way. This section is for applications that already use it.

- [[page:how-to/viewer2d/show-floor-plans]]: create the viewer, pick a storey, colour, select and label objects, load with a versions token, and destroy it again.
