r/Mars • u/Unexpected_Banana • 58m ago
I built a map of Mars with 5m per pixel resolution
NASA’s MRO probe has been observing Mars for about 20 years now, and its CTX camera has observed almost all of the planet, which Caltech's Murray Lab has stitched together into a ~5m per pixel global map.
For global topography, USGS has published a blend of elevation data from NASA's Mars Global Surveyor spacecraft and ESA's Mars Express that reaches 200m per pixel, with 1m steps in elevation.
USGS also publishes high resolution maps of landing sites, down to 0.25m per pixel for imagery & 1m per pixel for elevation, from the HiRISE camera.
I’ve put it all together, and the result is 1.4 TB of maps. To make that render in a browser, it’s split in resolution layers, each made up of an increasing amount of 1024px tiles. The first layer is the whole planet at 2048x1024px in 2 tiles, and each layer after that is double. The 12th layer has a resolution of 4,194,304 x 2,097,152 px, and there are 13,981,012 tiles across the main imagery layers. Topography & landing sites imagery add an extra ~400k tiles. The browser requests only what it needs to render a page, which keeps loading time & bandwidth usage low.
The map also has a “streetview” from 14k mars panoramas (mostly NASA rovers), historical positions of 39 mars probes, realistic atmosphere & lighting, and much more.
One small issue: the CTX map has shadows baked in, so the lighting can create double shadows in some places (cliffs). In most places I’ve checked it looks fine, and CTX adds a crazy amount of detail.
I’ve also got the rest of the solar system on spacemap, but Mars really has turned out amazing thanks to all the data NASA, USGS, and ESA publish for free.
This was built using Claude code, but I made all technical & design decisions.
Let me know what you think!