Hillshade playground

Shade the Alps in your own colours, light them from any direction and height, and play a day of sun across them

View on GitHub
SDK 1.0.0

The Bernese Alps are shaded in violet and warm light, and every control relights them: a method, a sun that climbs and sets, and a map that rotates under a light fixed to north or to the screen.

  • TerrainModule.applyConfig swaps a whole look in one call, and the multidirectional method spreads the single light direction into four lights for you.
  • terrainKnobCatalogue builds every control: its options, its range and its tooltip.
  • getKnob reports a setting left unset as the loaded style draws it, so the panel shows the value in force.

Related examples