Curved line between two near points in google maps

google-maps, javascript

Solution

Here are the Libraries I found

http://curved_lines.overfx.net/ Dead link

http://www.geocodezip.com/v3_polyline_example_rhumb.html

http://www.geocodezip.com/v3_polyline_example_arc.html

Actually I just found that Google map Polyline takes in a list of point to construct. So u can pass in multiple points to make the line looks curved.

PS: u can use the draw arc function in the 2 links below to get the list of points for drawing

Problem

Is possible to draw a curve line (like a geodesic line) between 2 near points in google maps, for example with these coordinates: p1 = (23.634501, -102.552783) p2 = (17.987557, -92.929147) Is there a javascript library to do it? and is possible to control the curvature of the line? Thanks.

Original source

Related problems