In July, Nature published a high definition Digital Surface Model of the new orography built by La Palma’s Tajogaite volcano eruption in 2021. A spectacular job by Istituto Nazionale di Geofisica e Vulcanologia together with Instituto Vulcanológico de Canarias.

The usual way to see and work with these files is using a GIS software like QGIS or ArcGIS, but how can we make this friendly to standard users? Wouldn’t it be better seen directly in 3D and visit the place virtually?

At this point is where I found CesiumJS: a 3D map viewer styling [G] Earth but open-source, free and highly customizable to make your own projects.

CesiumJS demo viewer of the new Tajogaite terrain with IDE Canarias satellite imagery. Click on the map to interact or open the full version.

Create a Cesium ion account

To use CesiumJS you need to register an account in order to obtain an Access Token.

Registering, we can also upload our own files to customize our 3D map creations. In my case you can see that I uploaded the Digital Surface Model and imagery of the viewer. I drop the links in case you want to use the same files:

TIP! You can use the WMS service in your GIS software to extract the imagery, or download the one I use in this example (270 MB with 1m resolution)

Include CesiumJS in your web.

To use CesiumJS we configure a .html file as usual.

In this case, I'll copy the code directly from their quickstart example as it is only about 25 lines: