Dodecahedral projection
This example displays a dodecahedral projection of the world map, unfolding the globe onto the faces of a dodecahedron using a myriahedral projection. The map, sourced from the VisionsCarto world atlas, is rendered as SVG with country boundaries and a graticule. The code computes the Voronoi faces on the sphere using `d3.geoVoronoi`, builds a spanning tree of the faces with Kruskal’s algorithm, and projects each face using a gnomonic projection via `d3.geoGnomonic`. The polyhedral arrangement and clipping are handled by `d3.geoPolyhedral` and `d3.geoPath`.
AI-generated descriptionObliging a USGS request.
Using:
d3-geo-voronoi to compute the faces
d3-geo-polygon for the polyhedral arrangement and to properly clip the geometries
In this implementation a list of shorter links allows you to control the faces that should be connected.
Built with blockbuilder.org