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 natural Earth projection of the world, with landmasses rendered in green on a light blue spherical backdrop. It uses D3 v5’s `geoNaturalEarth1` projection and `geoPath` to generate SVG paths from TopoJSON data loaded from the world-atlas dataset. The code converts the TopoJSON country features to GeoJSON via the `feature` method from Topojson, then appends each path to the SVG. The sphere outline is drawn first to establish the globe’s boundary.

AI-generated description
MIT Licensed

Similar vizzes