Skip to content

Instantly share code, notes, and snippets.

@oller
Created February 16, 2016 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oller/0da64b646d98455095c0 to your computer and use it in GitHub Desktop.
Save oller/0da64b646d98455095c0 to your computer and use it in GitHub Desktop.
arc path
var route = view.map.svg
.select(".transactions")
.append("path")
.datum({
type: "LineString",
coordinates: [routeCoords[0], routeCoords[1]]
})
.attr("class", "route")
.attr("d", view.map.path.projection(view.map.projection));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment