Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.12 KB

File metadata and controls

33 lines (22 loc) · 1.12 KB

This is a standalone version of the TerrainExtension with a TerrainLayer with a GeoJSON layer on deck.gl website.

The example is showing a GeoJSONLayer with Tour de France cycling routes over a TerrainLayer.

Usage

Copy the content of this folder to your project.

To load the terrain tiles, 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.jsx.

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

Data format

Mapbox's terrain API encodes elevation data in raster tiles.

To use other data sources, check out the documentation of TerrainLayer.

Data source for routes was prepared and processed using Tour de France GPX data freely available to download from https://www.cyclingstage.com/tour-de-france-2023-gpx/.