This repository hosts the VitePress site for the Pharloom United community map. The landing page renders the large in-world map with hoverable regions that link to the lore sections further down the page.
- Run
npm installandnpm run devto start VitePress locally. - Open
http://localhost:5173(default) and scroll to the map. - Use the Upload map image button above the map to preview a new background image. The chosen image is only stored in your browser; to publish it for everyone replace
docs/public/Pharloom.pngwith the desired asset. - Select a region in the Trace region dropdown to enter drawing mode, then click along the map to trace an exact polygon. Use the live counter + undo/clear buttons as needed and press Save polygon once you have at least three points. Your edits persist locally (in
localStorage) so you can take your time lining up every boundary. - Expand “Map calibration & data tools” under the map to make precise numerical tweaks, download/import JSON, and store your current setup locally. Each region exposes editable percentage-based coordinates so you can fine-tune alignment while looking at the image.
- Click Download JSON from the calibration panel to export your adjustments. Replace the array in
docs/.vitepress/theme/data/mapData.jswith the exported JSON to commit the new configuration.
The calibration drawer accepts imports as either the plain region array or an object shaped like { "regions": [...] }. This makes it easy to share presets between collaborators.
The site is a standard VitePress project:
npm run build
npm run serve # optional previewHost the generated docs/.vitepress/dist folder with any static host (GitHub Pages, Azure Static Web Apps, etc.).
https://docs.google.com/document/d/1mm7fpw6meSX-DXBTFnRaKl-BnYaiykfWdypiOnRLnkY/edit?usp=sharing