LibraryActive

deck.gl

deck.gl: Overview Introduction On this page Introduction These docs are for Looking for an old version?

Open source page

Field note

What it does

API Reference Core Classes Deck On this page Deck Deck is a class that takes deck.gl layer instances and viewport parameters, renders those layers as a transparent overlay, and handles events. If you are using React, you should not use this class directly. Instead you should be rendering the DeckGL React component. Usage ​ // Basic standalone use import { Deck } from '@deck.gl/core' ; import { ScatterplotLayer } from '@deck.gl/layers' ; const deck = new Deck ( { initialViewState : { longitude : - 122.45 , latitude : 37.78 , zoom : 12 } , controller : true , layers : [ new ScatterplotLayer ( { data } ) ] } ) ; Constructor ​ Creates a new Deck instance. const deck = new Deck ( props ) ; Parameters: See the Properties section. Properties ​ Initialization Settings ​ The following properties are used to initialize a Deck instance. Any custom value should always be provided to the Deck constructor. Changing them with setProps afterwards will have no effect.

Capabilities

Available capabilities

Tags

Tags

Ways to use it

Ways to use it

npm

javascript / deck.gl

sdk

python / Not filed

sdk

javascript / Not filed

npm

JavaScript / @deck.gl/core

sdk

JavaScript / https://deck.gl/docs/get-started/using-standalone

npm

JavaScript / @deck.gl/layers

npm

javascript / @deck.gl/mapbox

npm

javascript / @deck.gl/arcgis

npm

javascript / @deck.gl/test-utils

sdk

javascript / https://deck.gl/docs/api-reference/mapbox/overview

sdk

javascript / @deck.gl/react

Product features

Product features

canvas (HTMLCanvasElement

Constructor ​

Deck

device ( Device ) ​

deviceProps ( DeviceProps

gl (WebGLContext) ​

id (string) ​

Initialization Settings ​

Properties ​

String, optional) ​

Usage ​

WebGLDeviceProps ) ​