Neeharika_Singh
Posts: 81
Joined: Fri Nov 13, 2020 9:32 am

Multiple Flight Routes on MAPS

Thu May 12, 2022 9:51 am

Hi,

I have gone through this flight routes demo using HIGHMAPS. https://www.highcharts.com/demo/maps/flight-routes and now I want to enhance this with the following requirements :-

In the demo there is a single route given between location A and location B with a solid line. But, I need to enable multiple routes with in the same location A and location B one with solid line, one with dotted line, one with dashed line and so on. So is this achievable or not ? If so can you please provide the example of the same ?!

Thanks in Advance ..!


Neeharika Singh

hubert.k
Posts: 140
Joined: Mon Apr 11, 2022 11:48 am

Re: Multiple Flight Routes on MAPS

Thu May 12, 2022 11:24 am

Hello Neeharika_Singh,
Thanks for contacting us!

You can use a dashStyle property on mapline series. If you want to make different curve for line you can pass a value for each line to pointsToPath function.

Demo: https://jsfiddle.net/BlackLabel/s1gekjrz/
API Reference: https://api.highcharts.com/highmaps/ser ... .dashStyle

Feel free to ask any further questions!
Regards!
Hubert Kozik
Highcharts Developer

Neeharika_Singh
Posts: 81
Joined: Fri Nov 13, 2020 9:32 am

Re: Multiple Flight Routes on MAPS

Tue May 17, 2022 5:31 am

Hi Hubert.k,

Thanks for the DEMO provided. This matches the requirement. I will work on this and get back to you if I miss out something else. :)

hubert.k
Posts: 140
Joined: Mon Apr 11, 2022 11:48 am

Re: Multiple Flight Routes on MAPS

Tue May 17, 2022 6:21 am

You're welcome! Feel free to ask any further questions :D
Hubert Kozik
Highcharts Developer

Return to “Highcharts Maps”