Points on a Map
✓ Published1🌍 Public
This example displays a world map with points marking cities, rendered as an SVG using D3’s geoNaturalEarth1 projection and geoPath. The map shows landmasses, graticules, and country borders from the world-atlas TopoJSON, while city locations from a CSV file are plotted as semi-transparent circles. React manages the component state, fetching the data with useWorldAtlas and useCities hooks, and the d3.geoPath calculates the projected coordinates for each circle.
AI-generated descriptionA map of the world with cities using Topojson data from: 'https://unpkg.com/world-atlas@2.0.2/countries-50m.json';
MIT Licensed