Leaflet.js - Draw polyline to nearest point from a location
问题 I need to draw a polyline between two points using the shortest distance. Example, my location is New York, I have a location in China and I want to draw a polyline connecting the two locations. Where I am - see fiddle here: http://jsfiddle.net/Vsq4D/1/ The problem is that when I draw the line it does use the shortest distance. In the above example it draws from the US to China with the line going to the right, the longest way round the Earth, not the left, which is the shortest way. What am