Paths between named points
✓ Published0🌍 Public
Aandrew-reid
Last edited Mar 17, 2017
Created on Mar 7, 2017
A map of India renders city markers and orange curved arcs between them, using D3 v4 with an SVG Mercator projection. City coordinates are loaded from a JSON dictionary and plotted as circles, while routes between pairs of cities are drawn as quadratic arcs using a custom `lngLatToArc` function that computes curved paths from projected source and target points. The map is layered with a green semi-transparent GeoJSON shape of India beneath the arcs and city points.
AI-generated descriptionThis block is in response to a stack overflow question on multiple data sources and d3 maps. It may however be more useful in showing how to use named nodes. Uses d3v4.