Proof-of-Concept based on https://github.com/visgl/deck.gl/blob/8.9-release/examples/website/terrain-extension/README.md
To load the terrain tiles, you need a NLS Finland API key. You can either set an environment variable:
Set API_TOKEN
and URLs directly in app.jsx
.
# install dependencies
npm install
# or
yarn
# bundle and serve the app with vite
npm start
Mapbox's terrain API encodes elevation data in raster tiles.
To use other data sources, check out the documentation of TerrainLayer.