简体   繁体   中英

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? 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 . It appears automatically curved: http://nationalatlas.gov/articles/mapping/IMAGES/2mercators.gif .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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