Back to all examples
3D terrain map
Render the map surface in 3D using terrain elevation data
Ljubljana Castle crowns its hill above the old town and the river, and the castle and the buildings below stand on the slopes rather than floating above them.
TerrainModule.getraises the surface and shades it in one call, adding the elevation source to the style when it lacks one.BaseMapModule.setVisibleturns on the style’s own 3D buildings, which follow the terrain with no extra work.new Landmarks3D(map)lowers each landmark onto the terrain under its footprint, anddisplayMode: 'inherited'shades it like the buildings around it.
Related examples
Basic geometry
Show geometry around the search area
Getting Started
Places and Search
Map Style
Geometry
Web
Hillshade map
Display a hillshade map
Getting Started
Map Style
Web
3D Landmarks plugin
Render TomTom Orbis 3D Landmarks on a TomTomMap with the Landmarks 3D plugin
Getting Started
Web
3d
Plugins
Map Chat Agent
Interactive map assistant using AI to control maps and services
AI
Places and Search
Map Style
Base Map
Geometry
Traffic
Routing
Web
Playground
Plugins