Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProA layered building map in a restrained institutional style. Each level is an SVG floor plan with hairline walls that draw themselves in, door swings, a stair and lift core, outlined sector letters, room codes and dimension lines, switched from a stacked isometric preview of every slab or a level list with a sliding bar. Waypoints, control points with secured and contested states, exits and hazards stay a constant size while you wheel zoom, drag to pan or double click; a pulsing you-are-here marker with a heading cone, live grid coordinates, a scale bar that follows the zoom and a legend complete it. Arrows pan, plus and minus zoom, Page Up and Page Down change level, and reduced motion removes the draw-in, pulse and flicker.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { FloorMapScreen } from "@/components/hyperblur-pro/floor-map-screen"
<FloorMapScreen
initialLevel="l0"
youAreHere={{ level: "l0", x: 500, y: 308, heading: 0 }}
onMarkerSelect={(m, level) => console.log(level.code, m.label)}
/>| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | "Floor Plan" | Large heading at the top left. |
| subtitle | string | "Site Services / Building 4, all levels" | Small mono line above the heading. |
| levels | FloorLevel[] | five sample levels | Levels from top to bottom. Each has id, code, name, shell rectangle [x, y, w, h] in a 1000 by 640 plan, an optional atrium void, a seed that lays out rooms around the corridors, room names given to the largest rooms, and markers. |
| initialLevel | string | "l0" | Id of the level shown first. |
| youAreHere | { level: string; x: number; y: number; heading?: number } | { level: "l0", x: 500, y: 308, heading: -30 } | Position of the pulsing marker in plan units, with an optional heading in degrees for the view cone. |
| accent | string | "#e0261b" | Warning red for the you-are-here marker, hazards, contested points and the active slab. |
| showGrid | boolean | true | Faint 20 unit grid under the plan. |
| flicker | boolean | true | Chromatic aberration flicker on the level code and point title when the level changes. |
| onMarkerSelect | (marker: FloorMarker, level: FloorLevel) => void | undefined | Called when a point is picked on the map or in the list. |
Source code is included in Pro and above