Google地图上有多条折线重叠 [英] Multiple polylines overlapped on Google Maps

查看:172
本文介绍了Google地图上有多条折线重叠的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Google地图上显示多条航线。我用测地线为折衷,这是工作正常,但问题是当多个航班经过相同的路线,然后折线重叠另一条折线。我们可以通过改变曲线角度来解决这个问题,或者我们可以稍微分开一点。

I need to show multiple flight routes on google map. I used polyline with geodesic for that and that is working fine but the problem is when more then two flights going through same route then polyline overlapped by another polyline. Can we solve this by changing curve angle or can we little bit separate from each other.

推荐答案

现在我正在处理这个网址,我认为它会起作用,并且它是解决这个问题的最佳方法: https://developers.google.com/maps/documentation/javascript/examples/geometry -headings

Now I am working on this url I think it will work and it is best way to solve this question problem: https://developers.google.com/maps/documentation/javascript/examples/geometry-headings

这篇关于Google地图上有多条折线重叠的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆