cesiumjs-interaction

Installation
SKILL.md

CesiumJS Interaction & Picking

Version baseline: CesiumJS v1.139 (ES module imports, Ion token required).

ScreenSpaceEventHandler

Central class for mouse, touch, and pointer events on the Cesium canvas.

import { ScreenSpaceEventHandler, ScreenSpaceEventType,
  KeyboardEventModifier, defined } from "cesium";

const handler = new ScreenSpaceEventHandler(viewer.scene.canvas);

// Register a click handler
handler.setInputAction((event) => {
  console.log("Clicked at", event.position.x, event.position.y);
}, ScreenSpaceEventType.LEFT_CLICK);

// With keyboard modifier (Shift+Click)
Related skills

More from cesiumgs/cesiumjs-skills

Installs
14
GitHub Stars
34
First Seen
Apr 11, 2026