Construct a new interactive point.
Optional
options: object = {}See class doc block.
Reference to the parent application.
Initially captured height.
Highlight override color.
UUID identifier (auto-assigned).
Size when pointer is hovering.
Base visual size.
Reference to Cesium Entity primitive.
Clear all onMove callbacks.
Remove all listeners and objects, clean up Cesium primitive.
Register a callback fired on every movement (e.g., dragged or updated).
Returns self for chaining.
Register a callback when the point is set (clicked or dropped in place).
Called when set.
Optional
once: boolean = trueIf true, callback is only fired once.
Remove last onMove callback.
PointEntity – Interactive, selectable point entity for Cesium 3D scenes.
Extends Entity; manages appearance, interactivity (mouse/drag), selection, color/highlight, and event callback logic for movement and placement. Supports mouse drag to set position, hover, color, and custom callbacks.
Param: app
Parent application reference.
Param: options
Param: options.position
Initial position.
Param: options.pixelSize
Size (px) of the point marker.
Param: options.color
Main color.
Param: options.heightOffset
Offset above surface.
Param: options.selectable
Is this point interactively selectable/draggable?
Param: options.reactive
If true, point responds dynamically to underlying changes.
Param: options.deletable
If true, point can be deleted.
Param: options.hideWhileHolding
Hide marker while dragging/holding.
Param: options.pixelOffset
Offset for display tweak.
Param: options.highlightColor
Color when highlighted (optional).
Method
onMove(callback) - Register callback, fired on point move.
Method
onSet(callback[, once]) - Register callback for when point is set/fixed, optionally fires only once.
Method
destroy() - Removes event listeners, Cesium entities, and cleans up resources.
Example