Skip to main content
100%

World Map

✓ Published0🌍 Public
Kkottenikhil
Last edited Apr 13, 2023
Created on Apr 13, 2023
Forked from World Map

This example displays a world map using a natural Earth projection, rendered as yellow landmasses with black borders on a light blue sphere. It loads world country boundaries from the World Atlas TopoJSON data and converts it to GeoJSON using the `feature` function from TopoJSON. The map is drawn with D3’s `geoNaturalEarth1` projection and `geoPath` generator, appending SVG paths for both the background sphere and individual countries, styled via CSS classes.

AI-generated description
MIT Licensed

Similar vizzes