3D-City Model
    Preparing search index...

    Class PointEntity

    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.

    Parent application reference.

    Initial position.

    Size (px) of the point marker.

    Main color.

    Offset above surface.

    Is this point interactively selectable/draggable?

    If true, point responds dynamically to underlying changes.

    If true, point can be deleted.

    Hide marker while dragging/holding.

    Offset for display tweak.

    Color when highlighted (optional).

    onMove(callback) - Register callback, fired on point move.

    onSet(callback[, once]) - Register callback for when point is set/fixed, optionally fires only once.

    destroy() - Removes event listeners, Cesium entities, and cleans up resources.

    const point = new PointEntity(app, {position: Cesium.Cartesian3.fromDegrees(8, 51)});
    point.onMove(p => console.log('Moved to', p.position));
    point.onSet(p => alert('Point placed!'));
    point.selectable = true; // enable interaction

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _selectable: any
    app: any

    Reference to the parent application.

    baseHeight: number

    Initially captured height.

    hideWhileHolding: any
    highlightColor: any

    Highlight override color.

    id: string

    UUID identifier (auto-assigned).

    lastPickedPosition: Cartesian3
    leftDown3dHandler: undefined | null | ((event: any) => void)
    leftUpHandler: undefined | null | (() => void)
    mouseMove3dHandler: undefined | null | ((event: any) => void)
    mouseOverPixelSize: number

    Size when pointer is hovering.

    pixelOffset: any
    pixelSize: any

    Base visual size.

    primitive: any

    Reference to Cesium Entity primitive.

    Accessors

    Methods

    • Parameters

      • cancelKey: any
      • aggregator: any

      Returns void

    • Remove all listeners and objects, clean up Cesium primitive.

      Returns null