Versor dragging with inertia
This example demonstrates an orthographic globe with versor dragging inertia, allowing the map to glide smoothly when released. It uses the `d3.geoInertiaDrag` plugin to apply exponential decay to the user’s drag velocity, and red lines visualize the current inertia vector. The globe renders world landmasses from TopoJSON onto a Canvas, with the current rotation angles (λ, φ, γ) displayed in the corner. The code relies on `d3.geoOrthographic`, `d3.geoPath`, and the `versor` library for quaternion-based rotation.
AI-generated descriptionUsing the d3-inertia plugin.
Original research by Philippe Rivière for visionscarto.net.
Add inertia issue #27 to versor rotation of the globe.
Includes a modified versor.js, allowing the multiplication of the final rotation by a delta to the power alpha.
Moving average for velocity (exponential decay)
Trying to plug it in as cleanly as possible into d3.drag
Try it on mobile!