How to display a MVT layer of buildings in Deck.gl

This Deck.gl example demonstrates how to load a Vector Tiles layer. The specific layer showcased in this example is the building layer, which is sourced from the MapTiler Planet tileset. Simply use the code below the map.

In this scenario, the buildings within the layer are visually represented based on the color specified in the colour field, as well as their respective heights indicated in the render_height field.

Hold down the shift key to rotate the map



Replace YOUR_MAPTILER_API_KEY_HERE with your actual MapTiler API key.

Related examples