What did the world look like in 1930? To answer that, I used to open three Wikipedia tabs and try to build the timeline in my head. Brazil, Europe and the United States sit in different articles, and none of them shows what was connected to what in the same year.
That is why I built the map in ATLAS: a globe where you drag the timeline and see which territories exist, linked by influences, ruptures, actions and creations. This post explains how it is built.
Numbers from the current release (v0.9.0)
Source: ATLAS/generated/release-summary.json.
- 140 territories on the map
- 271 connections between them
- 12 milestones from 1750 to 2026 on the timeline
- 1,318 entities and 3,138 typed relations in the graph that feeds the map
1. The geometry is a 236 kB static file, loaded only on /mapa
The outlines come from Natural Earth 1:50m. The file natural-earth-globe.json is 236,498 bytes (measured in the repo).
It is not part of the main bundle. A route resolver does a dynamic import() of the JSON, so the browser only downloads it when you open /mapa. The code comment says the chunk rarely changes, so it stays cached across deploys that only touch page code (globe-base-map.resolver.ts).
Anyone reading an article or an entry page pays nothing for the globe.
2. The projection is custom code: no d3-geo, no Leaflet, no MapLibre
The project's package.json has no map library. It has topojson-client, d3-force, d3-scale and d3-shape. The projection lives in globe-projection.ts (585 lines) and the drawing in globe-canvas.ts, on a 2D canvas.
How it works, from reading the code:
- Each latitude and longitude pair becomes a vector on the unit sphere (
toUnitVector). - Country rings are decoded once per session into
Float32Arrays, 3 numbers per point (packDegRingToUnitVecs). - The projection is orthographic.
clipRingToHorizonkeeps only the visible hemisphere (z >= 0) and inserts short arcs along the limb where a polygon crosses the edge of the globe. - Connections are great-circle arcs, elevated and with spherical occlusion: the part that passes behind the planet disappears (
projectGeodesicArc). - Clicks use
hitTestCountry. Labels useplaceGlobeLabels.
An orthographic globe has to clip polygons at the edge. Without it, countries crossing the horizon turn into wrong triangles.
3. State with Signals
The map page keeps UI state in signals: reducedMotion, plus the legend, shortcuts and list panels (legendShown, shortcutsOpen, tableOpen). It runs on Angular 21.2 and TypeScript 5.9.
4. Accessibility: the globe is not the only way to use the map
A canvas has no structure for a screen reader. That is why there is an accessible list with the same data.
- The list button opens the panel with
aria-expandedandaria-controls="lista-acessivel". - Search is a
role="listbox"with options, and the/key moves focus to it. - There is a keyboard shortcuts panel.
- With
prefers-reduced-motion: reduce, animations become instant.
I did not test with a screen reader for this post. What I describe is what the code and the tests contain.
5. What the map does not promise
Borders follow contemporary reference outlines, and the interface says so. Coverage starts with Brazil and grows through Europe, the United States, Asia and Africa. A range like 1914 to 1945 shows the territories active in that period, not the exact borders of the time.
There are tests for the projection (globe-projection.spec.ts), for the data queries (world-map.spec.ts) and for the page (world-map-page.component.spec.ts).
Want to help?
ATLAS is open source. If you want to work on maps, accessibility or historical data, there are tasks for newcomers:
- Open the map: atlas.bellussi.dev/mapa
- Code: github.com/bellussi1/ATLAS
- Issues to start with: good first issue
A globe is only useful if people who cannot see the globe can use the same map.
