Skip to content

Interface: TileOverlayMesh ​

Handle returned by createTileOverlayMesh. Wraps a reusable mesh whose geometry is rebuilt on demand to cover a given set of tiles.

Properties ​

mesh ​

ts
mesh: Mesh;

Underlying THREE mesh — caller adds/removes from any parent group.

Methods ​

setTiles() ​

ts
setTiles(tileIds): void;

Rebuilds the overlay geometry for the given tiles. Pass null or an empty array to hide the overlay.

Parameters ​

ParameterType
tileIdsnumber[] | null

Returns ​

void


dispose() ​

ts
dispose(): void;

Disposes the geometry + material.

Returns ​

void

Distribué sous la licence indiquée dans le dépôt.