Skip to content

Latest commit

 

History

History
 
 

safegraph

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

This is a minimal standalone version of the Mapbox Integration example on deck.gl website.

Note that this example demonstrates using deck.gl as a Mapbox addon. This approach subjects to API and behavior changes in the Mapbox GL JS library. For alternative ways to use deck.gl with Mapbox, visit the project templates in get-started.

Usage

Copy the content of this folder to your project.

To run this example, you need a Mapbox access token. You can either set an environment variable:

export MapboxAccessToken=<mapbox_access_token>

Or set MAPBOX_TOKEN directly in app.js.

Other options can be found at using with Mapbox GL.

# install dependencies
npm install
# or
yarn
# bundle and serve the app with webpack
npm start

Data Source

To build your own application with deck.gl as Mapbox custom layers, check out the documentation of @deck.gl/mapbox module