Skip to main content
100%

Equirectangular Fisheye

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Nov 7, 2014

An interactive world map applies fisheye distortion to an equirectangular projection, magnifying countries and graticules near the cursor while compressing them elsewhere. The distortion follows mouse or touch movement, recentering the projection on the pointer. The example uses D3 v3’s `d3.geo.path` and `d3.geo.projectionMutator` with custom `fisheye` functions, rendering to a Canvas 2D context with `clearRect`. It loads TopoJSON land and boundary data from the world-110m dataset, drawing land, country borders, and a graticule with distinct stroke styles and alpha values.

AI-generated description
gpl-3.0 Licensed

Similar vizzes