cesium-spatial
    Preparing search index...

    Draws many cells as a single batched Cesium primitive.

    The expensive operation is building geometry, so the layer distinguishes two kinds of change. Changing which cells are present rebuilds the primitive; changing only color or visibility writes directly into the existing primitive's per-instance attributes, which is cheap enough to do every frame. Changing a cell's height is a geometry change and forces a rebuild.

    Index
    • get cellIds(): Iterable<string>

      The cell ids currently rendered by this layer.

      Returns Iterable<string>

    • Releases every Cesium resource held by the layer.

      Returns void

    • Maps a Cesium pick result back to a cell id, or undefined when the pick did not land on this layer.

      Parameters

      • picked: unknown

      Returns string | undefined

    • Replaces the layer's contents.

      When the incoming cells match what is already drawn, this restyles in place instead of rebuilding.

      Parameters

      Returns void

    • Applies a style override to one cell without rebuilding.

      Color and visibility take effect on the next frame. Height changes cannot be applied in place and are ignored here; pass them through setCells instead.

      Parameters

      Returns void