Cross Country Trip
This layered map visualizes global population density using NASA's "Earth at Night" imagery, overlaid with world country and US state borders and Stamen Toner label tiles. The visualization supports panning and zooming, and an animation automatically moves the view westward. Implemented with D3 v4, it uses `d3.tile`, `d3.geoMercator`, `d3.geoPath`, `d3.zoom`, and `d3.timer` to manage tiled raster layers, vector paths, and continuous motion, with a click toggling the animation.
AI-generated descriptionEver since I found out about Nasa's "Earth at Night" imagery, I wanted to make a map that puts the splotches of light into context. With this layered visualization, you can clearly see which splotches of light correspond to which cities, and into which states or countries they fall.
Click to start and stop the motion.
You can explore the whole world by panning and zooming.
This visualization uses d3-tile to show 4 layers:
- (raster) Nasa's "Earth at Night" map tiles from <a href="https://earthdata.nasa.gov">ESDIS</a>. The light emitted from earth at night can be thought of as a proxy for population density.
- (vector) World Country borders (world-50m.json) from TopoJSON Examples
- (vector) US State borders (us-states.json) from alignedleft/d3-book/chapter_12 via Michelle Chandra’s Block Basic US State Map - D3.
- (raster) Labels for cities, states and more. These are the <a href="http://stamen.com">Stamen Design</a> "Toner Labels" map tiles. Tiles copyright OpenStreetMap contributors.
Derived from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/5914438'>Raster & Vector III</a>.
<!-- Start of SimpleHitCounter Code --> <div align="center"><a href="http://www.simplehitcounter.com" target="_blank"><img src="http://simplehitcounter.com/hit.php?uid=2130839&f=16777215&b=0" border="0" height="18" width="83" alt="web counter"></a></div> <!-- End of SimpleHitCounter Code -->