🌍 Public
Viewing a saved revision (read-only)
f21082dfecb94ed3885d0ac749824fe9
Mapping : Part 2 - Cities
This example visualizes worldwide cities as semi-transparent teal dots layered over a natural Earth projection map. It uses d3.geoNaturalEarth1 and d3.geoPath to render landmasses, graticules, and interior boundaries from the world-atlas TopoJSON dataset, while city coordinates are plotted via d3.csv from a cleaned world cities dataset. The React component fetches both data sources asynchronously using useEffect, then projects each city’s longitude and latitude into SVG circles with fixed pixel radii.
AI-generated descriptionA world Map using the World Map Topojson Dataset