All five maps from the 2001 site, traced from the original artwork into SVG paths and wired to the old database's countries, adjacency, continents and bonuses. Hover a country, click it to see what it can attack.
Drop the image map. Each map is one JSON file the Worker serves (or bundles), and the client draws it as inline SVG with one <path> per country. The SVG scales to any screen through its viewBox, the browser handles hit-testing, and ownership is just a fill or badge colour, so there's no per-player image to render on the server.
Keep the rules data (adjacency, continents) server-side as the source of truth. The client only needs paths, label points and connectors for drawing.
type MapData = {
id: number; slug: string; name: string;
minPlayers: number; maxPlayers: number;
viewBox: [0, 0, number, number];
continents: { id: number; name: string; bonus: number;
countries: number[] }[];
countries: { id: number; name: string; continent: number;
color: string; // base fill
path: string; // SVG path d, even-odd
label: [number, number]; // troop badge centre
labelRoom: number }[]; // radius that fits there
adjacency: [number, number][]; // undirected
connectors: ({ a: number; b: number; line: [[number, number], [number, number]] }
| { a: number; b: number; wrap: true;
aStub: [[number, number], [number, number]];
bStub: [[number, number], [number, number]] })[];
decor: string; // non-playable land (US map)
};
Game preview deals countries at random to four sample players, with the rules' starting 3 troops each.