Orthographic Zoom II
This example demonstrates panning and zooming on an orthographic globe projection, allowing users to rotate the Earth by dragging and scale it with a zoom gesture. Building on a prior version, it improves panning accuracy by accounting for latitude during the rotation adjustment. The implementation uses D3 v4 with `d3.geoOrthographic` and `d3.geoPath` for rendering, alongside `d3.drag` and `d3.zoom` for interaction. Landmasses come from the `world-110m` dataset in TopoJSON format, and the globe is drawn as SVG paths.
AI-generated descriptionAn second attempt at panning and zooming with Orthographic projection. Improves upun the first attempt <a href='http://bl.ocks.org/curran/4f4c6ef5dde876fca80906d5e5c13344'>Orthographic Zoom I</a> in that panning accounds for the latitude. So in this version, if you zoom into, say, Iceland, panning still has the right sensitivity, whereas it did not in the first iteration.
Still struggling to get pinch zoom and drag pan to both work on mobile.
Uses world-110m geographic shapes from TOPOJSON World Atlas.
Inspired by