简体   繁体   English

Google Maps API:如何在两个标记之间绘制“弯曲的”飞行路线多边形线?

[英]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. 我只能画一条法线,而不能画一条弯曲的线。

Polylinegeodesic属性设置为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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM