Skip to content

Workshop demo 2025 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 20, 2025
Merged

Workshop demo 2025 #1

merged 9 commits into from
Jun 20, 2025

Conversation

lukemckinstry
Copy link
Contributor

Adds the demo code for the CesiumJS Deep Dive workshop

@lukemckinstry lukemckinstry requested a review from ggetz June 16, 2025 20:41
"vite-plugin-static-copy": "^1.0.0"
},
"dependencies": {
"cesium": "1.130.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lukemckinstry Just a heads up: I locked the version of CesiumJS, just in case, to ensure this always works going forward.

2. In Visual Studio Code, [open the workspace](https://code.visualstudio.com/docs/editing/workspaces/workspaces) by using **File** > **Open Folder...** and selecting the `cesiumjs-workshop` directory from the previous step.
3. Open `src/main.js`.
4. In Cesium ion, open the [**Access Tokens**](https://ion.cesium.com/tokens?) tab. Select the **Default Token**, and copy the contents of **Token** in the right pane.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I winder if we should go a step beyond the Quickstart Tutorial and advise participants to follow best practice and create a unique token for their app.

// `cesiumContainer` ID and visualize terrain
const viewer = new Viewer("cesiumContainer", {
terrain: Terrain.fromWorldTerrain(),
infoBox: false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few thoughts on minimizing the UI:

image
  1. Let's either set the home location or hide the home button.
  2. Lets disable the scene mode picker with scene3DOnly
  3. Since we're not getting into imagery layers in detail, let's hide the base layer picker

position: position,
orientation: orientation,
model: {
uri: "./src/CesiumBalloon.glb",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we want to upload this model to ion as part of the workshop? If so, should the code here reflect that? Or do we prefer that it work out of the box?

import "./style.css";

// Step 1.2: Add you default Cesium ion access token
Ion.defaultAccessToken = "your_ion_token_here";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want this app to work out of the box (for those who may stumble upon it organically) we could comment out this line.

@ggetz
Copy link
Contributor

ggetz commented Jun 20, 2025

Thanks for getting this all together @lukemckinstry! Looking great!

@ggetz ggetz merged commit 6158246 into main Jun 20, 2025
3 checks passed
@ggetz ggetz deleted the workshop-demo-2025 branch June 20, 2025 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants