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, which a flight into the Alps turns into raised, tilted relief.
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
Layer group toggling
Control individual base map layer groups
Customization
Base Map
Map Style
Web
Map layer groups visibility animation
Making key layers of the map appear in an animation.
Base Map
Customization
Map Style
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
Base Map
Map Style
Web
Map effects playground
Post-process the map with bloom, grade, tint, fog, edge blur, depth of field and vignette.
Customization
Map Style
Plugins
Web