Atlaslog
Atlaslog / deck.gl / API / OrbitView
deck.gl · API reference

OrbitView

Quick answer

The OrbitView class is a subclass of View that creates a 3D camera that rotates around a target position. It is usually used for the examination of a 3D.

Last verified 2026-11-03 · deck.gl 9.0 · Cite this page
Runnable examplesChinese noteAll API topics

The OrbitView class is a subclass of View that creates a 3D camera that rotates around a target position. It is usually used for the examination of a 3D scene in non-geospatial use cases.

It's recommended that you read the Views and Projections guide before using this class.

Constructor​

import {OrbitView} from '@deck.gl/core';
const view = new OrbitView({id, ...});

OrbitView takes the same parameters as the View superclass constructor, plus the following:

orbitAxis (string, optional)​

Axis with 360 degrees rotating freedom, either 'Y' or 'Z', default to 'Z'.

projectionMatrix (number[16], optional)​

Projection matrix.

If projectionMatrix is not supplied, the View class will build a projection matrix from the following parameters:

fovy (number, optional)​

Field of view covered by camera, in the perspective case. In degrees. Default 50.

near (number, optional)​

Distance of near clipping plane. Default 0.1.

far (number, optional)​

Distance of far clipping plane. Default 1000.

orthographic (boolean)​

Whether to create an orthographic or perspective projection matrix. Default is false (perspective projection).

View State​

To render, OrbitView needs to be used together with a viewState with the following parameters:

Controller​

By default, OrbitView uses the OrbitController to handle interactivity. To enable the controller, use:

const view = new OrbitView({id: '3d-scene', controller: true});

Visit the OrbitController documentation for a full list of supported options.

Source​

modules/core/src/views/orbit-view.ts

TutorialsAPI index
English reference text adapted from the official deck.gl documentation, © vis.gl contributors, licensed under MIT.
Original page: https://deck.gl/docs/api-reference/core/orbit-view · Chinese note: /deckgl/api/orbit-view.html
Cite this page

Atlaslog (2026). OrbitView. https://www.jingweizhi.com/en/deckgl/api/orbit-view.html (accessed 2026-11-03).