谷歌地图中两个近点之间的曲线 [英] Curved line between two near points in google maps
问题描述
可以在谷歌地图中的两个近点之间绘制曲线(如测地线),例如使用以下坐标:
$ b
p1 =(23.634501, -102.552783)
p2 =(17.987557,-92.929147)
有没有一个JavaScript库可以做到这一点?并有可能控制线的曲率?
谢谢。
以下是我找到的图书馆
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
其实我刚刚发现Google地图Polyline需要建立点的列表。所以你可以通过多点让线看起来弯曲。
PS:你可以在下面的两个链接中使用绘制弧函数来获取绘制点的列表
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.
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
这篇关于谷歌地图中两个近点之间的曲线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!