Skip to content

Commit 96f68d8

Browse files
rdhyeeclaude
andcommitted
Change camera view from Italy to PKAP Survey Area
- Center on PKAP Survey Area coordinates (34.987406°N, 33.708047°E) - Use 0.3° padding around point for better context - Update Home button to reset to PKAP instead of Italy - Add OpenContext source URL in comment for reference PKAP (Palaepaphos-Kouklia Archaeological Project) is a better demonstration site as it showcases the multi-location survey pattern with 15,446 events across 544 different geographic coordinates within the survey area. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent b641999 commit 96f68d8

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

tutorials/parquet_cesium.qmd

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -419,19 +419,28 @@ md`Retrieved ${pointdata.length} locations from ${parquet_path}.`;
419419

420420
```{ojs}
421421
//| echo: false
422-
// Center initial Cesium view on Italy and also set Home to Italy!
422+
// Center initial Cesium view on PKAP Survey Area and also set Home to PKAP!
423423
{
424424
const viewer = content.viewer;
425-
// Approximate bounding box for Italy (degrees)
426-
const italyRect = Cesium.Rectangle.fromDegrees(6.6, 36.6, 18.8, 47.1);
427-
428-
// Make the Home button go to Italy as well
429-
Cesium.Camera.DEFAULT_VIEW_RECTANGLE = italyRect;
425+
// PKAP Survey Area near Cyprus
426+
// Source: https://opencontext.org/subjects/48fd434c-f6d3...
427+
const pkapLat = 34.987406;
428+
const pkapLon = 33.708047;
429+
const delta = 0.3; // degrees padding around point
430+
const pkapRect = Cesium.Rectangle.fromDegrees(
431+
pkapLon - delta, // west (lon)
432+
pkapLat - delta, // south (lat)
433+
pkapLon + delta, // east (lon)
434+
pkapLat + delta // north (lat)
435+
);
436+
437+
// Make the Home button go to PKAP as well
438+
Cesium.Camera.DEFAULT_VIEW_RECTANGLE = pkapRect;
430439
Cesium.Camera.DEFAULT_VIEW_FACTOR = 0.5;
431440
432441
// Apply camera after the first render to avoid resize/tab visibility issues
433442
const once = () => {
434-
viewer.camera.setView({ destination: italyRect });
443+
viewer.camera.setView({ destination: pkapRect });
435444
viewer.scene.postRender.removeEventListener(once);
436445
};
437446
viewer.scene.postRender.addEventListener(once);

0 commit comments

Comments
 (0)