This is a follow up question to my other one.
http://fiddle.jshell.net/zw8TR/16/
I have managed to utilise d3 to visualise the route between my map markers. I used this example by Mike Bostock as guidance.
The reason I'm using d3 for this instead of Leaflets built in Polyline, is because I'd like to experiment with d3's interpolation to smooth out some routes, and also create arc's for others (for flight routes). At this stage though, I'm just trying to find a way to get these to work for all routes.
The examples I've seen only use the interpolate()
method with d3.svg.line()
, whereas the Leaflet integration requires me to use d3.geo.path()
. Is there a place in my code where it's possible to use this method with d3.geo.path()
?
Another possibly helpful link.
And another.
Thanks for any help.