Type Alias: MapContentFn<TProps>
MapContentFn<
TProps> =DefineFn<MapHelpers,MapContentItems,TProps>
Defined in: packages/core/src/passages/interactiveMap/types.ts:977
Content callback accepted by defineInteractiveMap.
Receives the MapHelpers toolbox first and the display props second.
Type Parameters
TProps
TProps extends InitVarsType = EmptyObject
Type of props passed to map.display()
Example
const content: MapContentFn = (h) => [
h.label('Village', { position: { x: 30, y: 40 }, action: h.jump('village') })
];