Skip to content

Events

Declarative event handlers that emit CesiumJS screen-space event code.

import cesiumkit

viewer = cesiumkit.Viewer()
viewer.on(
    cesiumkit.ScreenSpaceEventType.LEFT_CLICK,
    "console.log('clicked at ' + position)",
)

events

Event handling for cesiumkit.

Classes:

Name Description
EventHandler

An event handler binding a screen space event to a JS callback.

EventHandler

Bases: CesiumBase

An event handler binding a screen space event to a JS callback.