One missing minus sign and the whole globe was inside out
Spent three rounds trying to describe why the globe was jumping to Australia every time I hit UNFOLD. Countries ghosting, doubling during the transition, the map unfurling from the wrong hemisphere. I kept saying "it snaps to the other side" and the fix kept being more complex — wider thresholds, delayed clip switching, opacity crossfades. None of it helped because the symptom wasn't the disease. The hemisphere classifier in getCenter() returned [r[0], -r[1]] instead of [-r[0], -r[1]]. D3's rotation convention: rotate([λ, φ]) centers on [-λ, -φ]. One missing negation on longitude meant every country got classified relative to the antipode. Americas visible? Hemisphere split thinks you're looking at central Asia. One character. Every visual bug gone.