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

View on GitHub
SDK 1.0.0

A whole planet with its atmosphere turns into raised, tilted relief as the map flies into the Alps.

  • StylingFoundationsModule.get with view.projection and view.sky.visible makes the globe. Both are knobs, so they survive a setStyle, which resets them in MapLibre.
  • TerrainModule.get adds the elevation data the style lacks, and setKnob on elevation.exaggeration scales the relief without reloading it.

Related examples