This project is the continuity of OreCzml available here, please make sure to check it !
The OreCzml JS interface aims at giving more features to the Cesium environment. Those can be listed as below :
- A button to switch the camera between the inertial frame of the earth or a non-rotational earth frame
- If a Czml file is loaded, a button to display all the satellites/ground station/bodies is available. This button will display a list of all the objects grouped by nature. Then the user can click the ID of the object to zoom the camera to it.
A NavBall is available and can be switch off/on with a button. (Under Development) This navball adapt to the object targeted, to represent what is the attitude of the object in the ITR frame.
First clone the repository into a new folder with:
git clone https://gitlab.orekit.org/Zudo/oreczml-js-interface.git
To use npm as commands, you need a version of node installed. I recommend installing nvs available here
The readme of the repository should lead you to install nvs for your operating system.
When npm commands are available, you can now open a shell into the folder where the interface is and use:
npm install
The shell should display such message: (the numbers are replaced with ***)
added *** packages and audited *** packages in *s
*** packages are looking for funding
run 'npm fund' for details
*** vulnerabilities (*** moderate, *** high)
To adress all issues, run:
npm audit fix
Run 'npm audit' for details
Now run:
npm audit fix
It should resolve the vulnerabilities of the code.
Now that the dependencies are installed, you can run npm run build
. To check that the version of the interface that you have correctly build, if not open an issue and put the error message you got.
And finally you can use the command npm start
to launch the local server to
To load your own Czml file, modify the 'Output.czml' file in the 'public' folder !
The cesium ion token is a useful to display a precise skin of the earth. You can find one here, once you got one, you can change the line inside the index.js
, by filling your token inside the "".
// Line to fill:
Ion.defaultAccessToken = "";
Request has failed. Status Code: 404
handleError@webpack://cesium test/./node_modules/webpack-dev-server/client/overlay.js?:252:58
createOverlay/<@webpack://cesiumtest/./node_modules/webpack-dev-server/client/overlay.js?:275:18
This error is because there is no Output.czml in the public folder.