No framework
We use React for our web navigator but if you don't use the same tools then read through the documentation below on how you can get started.
If you'd like proper typing then it's recommended to read the React tab and then try to implement the same in your own framework.
Starter kit
To give you something to try without any setup we've made a simple starter kit that you can double-click and run in your browser.
It will render a specific test bookmark.
Download starter kit
Just API communication
Just loading the communication end is very simple and only requires a single script tag. Once you have installed the NPM package you can copy the folder elsewhere if you wish.
Here is how you install the package.
Here is how you load the package and test if it's loaded properly.
Rendering engine
Getting the CesiumJS library and the Nextspace ones to properly connect is trickier.
CesiumJS loads resources dynamically from local files. This means if you are loading the libraries from local files you will need to create a web-server otherwise the requests will be blocked.
Below I will showcase two examples, one with local files with a web-server, and one with an online link that doesn't require a web-server.
Online files without web-server
Local files with web-server
Please ensure you install cesium@1.93 as that is the latest supported version in this workflow. Cesium changed how they package their file so our examples will focus on "1.93". Our React examples are focused on their latest version.
You can use the http-server package to run a web-server locally. This command will serve the index.html file in your directory.
Here is how your index.html file should look like.