Back to Tldraw

D3 geo map

apps/examples/src/examples/use-cases/d3-map/README.md

5.2.1383 B
Original Source

A D3 geo map rendered as tldraw shapes that can be exploded into individually manipulable states.


This example demonstrates integrating a D3 geographic projection with tldraw's custom shape system. A composite US map shape can be "exploded" into individual state shapes that can be moved, resized, and selected independently. The explode operation is atomic and fully undoable.