Skip to content

3D

A Maptoolkit map can show two things in 3D: the ground, raised by an elevation model, and the buildings on it. Both appear when you tilt the map, and both work without an API key.

What you can show

How you turn it onDetails
TerrainAdd -3d to any community style name, for example summer-3d.json3D Terrain
Extruded buildingsBuilt into the Street and Summer styles. For the other styles, add a fill-extrusion layer3D Buildings
Buildings with roof shapes, 3D city models and 3D treesAdd the Scene3D Control to a MapLibre GL JS map with the Street or Summer style3D Buildings

On a -3d style, the buildings stand on the terrain.

Our MapLibre plugins for 3D

PluginWhat it does
Scene3D ControlReads the 3D scene from the style and adds the buildings with roof shapes and the trees. This is the only package you install.
3D LayersThe three.js layers that draw the buildings and trees. The Scene3D Control loads it for you.

Both need MapLibre GL JS 6 or later.

What each library supports

Library3D terrain3D buildings
MapLibre GL JSYesYes, with roof shapes through the Scene3D Control
deck.glYes, with the terrarium decoderExtruded blocks, through a MapLibre basemap
MapLibre Native AndroidNoExtruded blocks
MapLibre Native iOSNoExtruded blocks
FlutterNoExtruded blocks
React NativeNoExtruded blocks
kepler.glWhat the style carriesWhat the style carries
LeafletNoNo
OpenLayersNoNo
CesiumJSNoNo

The 3D Terrain and 3D Buildings pages explain why a library cannot show 3D, and link the examples for each library.