Back to all examples
Globe and 3D terrain
Switch the map to a globe with an atmosphere with the styling foundations module's view knobs, or raise it in 3D with the terrain module
A whole planet with its atmosphere turns into raised, tilted relief as the map flies into the Alps.
StylingFoundationsModule.getwithview.projectionandview.sky.visiblemakes the globe. Both are knobs, so they survive asetStyle, which resets them in MapLibre.TerrainModule.getadds the elevation data the style lacks, andsetKnobonelevation.exaggerationscales the relief without reloading it.
Related examples
Hillshade playground
Shade the Alps in your own colours, light them from any direction and height, and play a day of sun across them
Playground
Map Style
Terrain and 3D
Web
Hillshade map
Display a hillshade map
Getting Started
Map Style
Terrain and 3D
Web
Map colours
Recolour the whole base map with ten semantic colours in one call: every shade, outline and variant the style derived from one of them follows it
Customization
Map Style
Web
Mixed map effects
Paint the map in watercolour with your own shader, under the plugin's bloom, grade and vignette.
Customization
Map Style
Plugins
Web