Skip to main content
100%

Points on a Map

✓ Published1🌍 Public
Rrstrauss127
Last edited May 23, 2022
Created on May 17, 2022
Forked from World Map

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 description

A map of the world with cities using Topojson data from: 'https://unpkg.com/world-atlas@2.0.2/countries-50m.json';

MIT Licensed

Similar vizzes