Block showing how to place text on topojson lines in d3.js v4. Built off of one of Mike Bostock's blocks on displaying arcs (Snowden's Route I think). Whitehorse, in the Yukon, Canada, is shown on the map with the small circle.
https://d3js.org/d3.v4.min.js
https://d3js.org/d3-geo-projection.v1.min.js
https://d3js.org/topojson.v1.min.js