Skip to main content

View as Markdown · AI documentation index

Type Alias: AnyHotspot

AnyHotspot = MapLabelHotspot | MapImageHotspot | MapImage | SideLabelHotspot | SideImageHotspot | MapMenu

Defined in: packages/core/src/passages/interactiveMap/types.ts:685

Union type of all possible hotspot types. Used for type-safe hotspot arrays in interactive maps.

Remarks​

This discriminated union allows TypeScript to narrow hotspot types based on the type property when rendering or processing hotspots.