spatial-monorepo / core/src / renderTooltip
Function: renderTooltip()
renderTooltip(
template,props):string
Defined in: packages/core/src/layers/DataLayer.ts:571
renderTooltip — evaluates a Handlebars-style tooltip template string against a feature properties object.
Supported helpers: fallback, formatDate, formatNumber, ifEquals, json.
Example: renderTooltip("{{formatDate ts}} — {{fallback label 'Unknown'}}", props)
Parameters
template
string
props
Record`<string, unknown>`
Returns
string
