Previewing photos with CesiumJS
The next feature of our application will be to display all the photos we have taken with the camera on a 3D map. The CesiumJS library provides a viewer with a 3D globe that we can use to visualize various things, such as images in specific locations. This new feature of our application will consist of the following:
- Configuring CesiumJS
- Displaying photos on the viewer
We will begin by learning how to set up the CesiumJS library.
Configuring CesiumJS
The CesiumJS library is an npm package that we can install to start working with 3D maps and visualizations:
- Run the following
npm
command to install CesiumJS:npm install cesium
- Open the
angular.json
configuration file and add the following entries in theassets
array of thebuild
architect option:{ "glob": "**/*", "input": "node_modules/cesium/Build/Cesium/Workers", "output"...