examples/gallery/README.md
This directory contains standalone deck.gl examples that do not require installing dependencies or bundling.
In the web browser, open any .html file from the src directory. Examples with base maps require Mapbox access tokens to render. Look for <mapbox-access-token> in the file and replace with your token. For more information, see Mapbox access tokens.
Run local dev server:
# install dependencies
yarn
# start server
export MapboxAccessToken=<mapbox-access-token> && npm start
And open http://localhost:3000 in the browser.
To add a new example:
src.<mapbox-access-token>.<title> tag.images. The image is ideally 800x480 in size.To test all examples with the local version, run:
# rebuild bundle
cd ../../modules/main && npm run prepublishOnly && cd -
# start server
npm run start-local
To test all examples with a specific release:
node build-tools/serve --version=6.0.0-alpha.0
npm run build
Copy contents of the dist directory to showcases/gallery in the gh-pages branch.