@eyeon/map (Center Map v2)
DB-driven center map: pure-TS core, three.js viewer, SVG/DOM editor.
Subpath exports
import { importSvg, compileDocument, findPath } from '@eyeon/map/core';
import { MapViewer } from '@eyeon/map/viewer';
import { MapEditor } from '@eyeon/map/editor';
import '@eyeon/map/viewer/index.css';
import '@eyeon/map/editor/index.css'; // includes viewer chrome (floors / RESET / zoom)
MapEditor host="PORTAL"— staff editor. Left rail is Map options only (Floors, Kiosks, Style, Edit Map). Default center is MapViewer (click-to-assign; viewer chrome stays on the canvas). Edit Map swaps in the geometry canvas and editor grid.MapViewer(WEBSITE/DISPLAY_APP) — public or kiosk chrome fromviewerChrome(host). Never includes Map options.
Develop from Storybook: npm run storybook → a v2 Center Map story, then switch Host. See apps/storybook/README.md.
Typography
The map ships no font of its own — it inherits the font of whatever page mounts it (admin-portal gets Montserrat, a center website gets that site's font). To pin a different font just for the map, set the variable on the container:
.my-map-wrapper { --eyeon-map-font-family: 'Inter', sans-serif; }
Storybook loads Montserrat as its own host font, so stories match admin-portal.
Reversibility
- v2 never writes
mapit2_* - v2 S3 objects live under
media/map/only centers.map_version(default1) is the only coupling- Absent / unknown version → v1
Scripts
npm test
npm run build