Interface: MapImage
Defined in: packages/core/src/passages/interactiveMap/types.ts:488
Decorative image positioned on the map without interactive behavior.
Unlike an image hotspot, a map image has no action, disabled state, tooltip, hover image, or active image. Use it for markers, characters, overlays, and other visual elements that must share the hotspot coordinate system without becoming controls.
Example
{
type: 'mapImage',
content: '/characters/guard.png',
position: { x: 42, y: 68 },
props: {
alt: 'Castle guard',
zoom: '75%'
}
}
Extends
BaseMapHotspot
Properties
content
content:
MaybeCallable<string>
Defined in: packages/core/src/passages/interactiveMap/types.ts:496
Static or dynamically resolved image URL/path.
id?
optionalid:string
Defined in: packages/core/src/passages/interactiveMap/types.ts:493
Optional identifier used as the rendered element id and default alt text.
position
position:
HotspotPosition
Defined in: packages/core/src/passages/interactiveMap/types.ts:429
Position coordinates on the map. Values are percentages (0-100) of the map's width and height. Can be static or dynamic (function-based) for reactive positioning.
See
HotspotPosition for examples and coordinate system details
Inherited from
BaseMapHotspot.position
props?
optionalprops:object
Defined in: packages/core/src/passages/interactiveMap/types.ts:499
Optional presentation settings.
alt?
optionalalt:string
Accessible image description. Falls back to id, then an empty string.
classNames?
optionalclassNames:object
CSS classes for the visual wrapper and image.
classNames.container?
optionalcontainer:string
classNames.image?
optionalimage:string
zoom?
optionalzoom:`${number}%`
Visual scale relative to the source image size.
type
type:
"mapImage"
Defined in: packages/core/src/passages/interactiveMap/types.ts:490
Discriminator identifying a non-interactive map image.