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