Building a map from Earth to the edge of the universe
How a true-scale solar system grew, in one month, into a zoom from metres to 46.5 billion light years.
The Solar System Map started on October 9 as one thing: the planets at their real sizes and real distances, with a zoom deep enough to see them. A month later the same zoom goes from metres to 46.5 billion light years. These are notes on how it got there, in the order things were added.
1. A solar system at true scale
True scale is mostly empty space, so the first version was really about zoom: smooth enough to cross from a planet to the whole solar system, and detailed enough that a planet still looks like something when you arrive. The detail comes from image tiles, including an 8k Milky Way. Browsers refuse to load tiles from a plain file, so the map ships with a tiny local server (start-windows.bat), and on this site it is simply served from the web.
2. The sky from the ground
The next big batch, on November 4, turned the view around and looked up. The sky view got alt-az and RA-Dec grids, the ecliptic and meridian, a ground you can switch off, atmospheric refraction, and a Bortle light-pollution slider that dims the faint stars and the Milky Way and adds city glow.
It also shows the whole sky at other wavelengths, made from real survey maps: Haslam at 408 MHz for radio, WMAP for the microwave background, IRAS/IRIS at 100 µm for infrared, Finkbeiner’s hydrogen-alpha map, ROSAT for X-rays and Fermi LAT for gamma rays. In 3D, the same update added the solar wind as a Parker spiral, the heliosphere, auroras, Lagrange points, Roche limits and Hill spheres, eclipse paths and the day-night line.
3. Real satellites, without a server
Earth’s satellites use real orbits. The browser downloads current element sets (TLEs) and satellite.js runs SGP4 on them. Two details mattered:
- SGP4 answers in the TEME frame, and everything else in the map is in the J2000 ecliptic frame, so positions are converted. Checked against satellite.js’s own sub-satellite point, they agree within 0.15°.
- The whole catalogue (Starlink, OneWeb, GPS, GLONASS, Galileo, BeiDou and the geostationary belt) is too much to move every frame, so it is updated in slices of 1,500 satellites per frame.
Instead of every visitor’s browser asking CelesTrak, a GitHub Actions workflow downloads the eleven TLE groups once a day and publishes them to a tle-data branch as a single replaced commit, so the repository doesn’t grow. The page reads that copy first (raw.githubusercontent.com allows cross-site requests), falls back to CelesTrak at most once every six hours, and keeps a copy in the browser. Far from the download date, or offline, it switches to illustrative orbits and says so.
4. Past the stars
On November 5 the zoom-out stopped at Pluto no longer. Each layer fades in at its own scale:
- about 78,000 Hipparcos stars within roughly 1,000 light years (from the HYG database);
- the Milky Way as a model built from measured sizes: bar, bulge, disc, four arms, the Orion Spur and a halo of globular clusters, with the Sun 26,670 light years from the centre;
- 706 nearby galaxies with measured distances, each a small model of its type and size, tilted to its real inclination where it is known;
- the galaxy web out to 1.6 billion light years from 6dFGS in the south and SDSS in the north, then 300,000 BOSS galaxies out to 8.6 billion;
- and the edge of the observable universe at 46.5 billion light years, wearing the cosmic microwave background.
Redshifts become distances assuming a flat universe with H0 = 70 km/s/Mpc and Ωm = 0.3.
5. Making it readable
Once everything was in, the problem became finding yourself in it:
- From about 2 light years out, the Sun gets a “You are here” callout. The old faint label was lost among the bright nearby stars.
- Ten real star clusters near the Sun were added, from the Ursa Major group to the Orion Nebula Cluster. Their member stars are moved to Gaia distances: Hipparcos puts the Pleiades about 10% too close.
- The ball of nearby stars now fades out from 380 light years, because its edge is where the catalogue ends, not a real boundary.
- The Milky Way’s bar had melted into the bulge as a round glow. It is now a distinct bar about 30,000 light years long at 27°, with the two major arms starting at its ends, as in the real galaxy.
6. The journey I cut
For a day the map had a “Quark to universe” animation: 43 powers of ten, from quarks and gluons through the atom, DNA, a cell, skin and a person on the grass, handing over to the real 3D view at about 3 km. It got illustrations, then real micrographs and photographs calibrated to true size.
Then I took it out. What replaced it is narrower: Earth to universe, one continuous zoom-out in the real 3D view that slows and pauses at twelve stages, from Earth and the Moon to the cosmic web, with a caption and the width of the view at each one. Everything it shows is the map itself.
Try it
Open the Solar System Map (a desktop browser works best), or read the source and data credits on GitHub.