Show (or replace) a named cell overlay. Pass null or an empty set to hide it.
Cells outside the map bounds are skipped.
Show (or replace) a named smoothed path line (see smoothPath).
Pass null or a path shorter than 2 cells to hide it.
Hide an overlay without destroying its resources (cheap to re-show).
Remove an overlay and free its GPU resources.
Remove all overlays and free their GPU resources.
Named per-cell overlays rendered on top of the terrain: hover highlights, selected-cell outlines, movement-range tints, territory borders, and smoothed path previews.
Each overlay is identified by a string id and replaced wholesale on update — call set (cells) or setPath (a path line) each time the highlighted set changes, and pass
nullto hide. Overlays render with depth testing off by default so they stay visible over perturbed terrain and water; map-wide tints should opt intodepthTest(see OverlaySetOptions).Example