Fork of Cheap Tricks for Interaction
✓ Published0🌍 Public
This example shows an interactive world map rendered in SVG using the natural Earth projection. Users can pan and zoom by dragging or scrolling, with the viewport transform applied to a group element. Country boundaries and names come from world-atlas TopoJSON and TSV data. The visualization uses d3.geoPath for geographic paths, d3.zoom for interaction, and CSS hover states that turn countries red. A sphere outline and background fill complete the globe-like appearance.
AI-generated descriptionMIT Licensed