🌍 Public
lets make a map!
This example shows a natural Earth projection of world countries, rendered as green SVG paths with a hover effect that turns each country red. It uses the `world-atlas` TopoJSON dataset to load country boundaries, then applies `d3.geoPath` with `d3.geoNaturalEarth1` to project and draw the paths. A sphere outline is added via `pathGenerator({type: 'Sphere'})`. The visualization fills the entire viewport, with the projection scaled to the browser’s dimensions.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.