A starter CesiumJS devcontainer, leveraging Cesium's Webpack 4 Example.
-
Create a free Cesium Account
-
Go to Cesium Ion and select
Access Tokens
-
Create or reuse an existing access token with the following access:
- assets:read
- geocode
-
Copy the value under
Token
-
Create a
.env
file in the root directory of this repository containing the following, where<Token Value>
is replaced by the token copied in the previous step:CESIUM_TOKEN=<Token Value>
-
Open this project in the provided devcontainer:
F1-> DevContainers: Rebuild and Reopen in Container
-
Once the devcontainer has built and the project has reopened, launch the application via
F5
or:Run and Debug -> Run Application
-
Once webpack has built and deployed the application, it can be accessed at:
http://localhost:8080