[英]Google Maps API: How to draw “curved” flight route polygon line between two markers?
Is there any easy way or additional API to draw a curved polygon line fitting to the map projection of the earth? 是否有任何简单的方法或其他API来绘制适合于地球地图投影的弯曲多边形线? I can only draw a normal line, but not a curved one. 我只能画一条法线,而不能画一条弯曲的线。
将Polyline
的geodesic
属性设置为true
You can use a great circle route because the earth is a sphere: https://uk.answers.yahoo.com/question/index?qid=20080128153829AAJPuku . 您可以使用大转弯路线,因为地球是一个球体: https : //uk.answers.yahoo.com/question/index?qid=20080128153829AAJPuku 。 It appears automatically curved: http://nationalatlas.gov/articles/mapping/IMAGES/2mercators.gif . 它看起来是自动弯曲的: http : //nationalatlas.gov/articles/mapping/IMAGES/2mercators.gif 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.