🌍 Public
Viewing a saved revision (read-only)
bbb7b429062240b8bb014187303fd760
Fork of World Cities
This example renders a world map with a dot for each city, using the Natural Earth projection from the `d3.geo` module. The map draws country boundaries and a graticule via `d3.geoPath`, while city coordinates are projected using `d3.geoNaturalEarth1` and plotted as tiny circles. It fetches world atlas TopoJSON and a CSV of world cities, parsing the latter with `d3.csvParse` to display their locations.
AI-generated descriptionA world map showing cities.
See also:
- Simplemaps: World Cities Database
- Wikipedia: Toggle the table of contents Geographic coordinate system
- d3-geo: projection(point)
MIT Licensed