How to display a 3D terrain layer in Deck.gl

This example shows how to create a 3D map in Deck.gl. By utilizing MapTiler’s RGB terrain, you can enhance your maps by incorporating a realistic 3D terrain layer. Implementing the code provided below the map will allow you to achieve this effect.

Hold down the shift key to rotate the map

MapTiler SDK controls do not work when used in reverse-controlled mode. To use SDK controls, follow How to display a Deck.gl layers interleaved in MapTiler SDK JS


Replace YOUR_MAPTILER_API_KEY_HERE with your actual MapTiler API key.