• Open in:

Map with Curved Lines

As you probably know, flat maps are not exactly geometrically accurate and we use different projections to transform our globe onto a flat surface. For this reason a straight (shortest path) line going from point A to point B wouldn’t be straight on a projected map. amCharts Maps takes care of this and enables you to create lines curved according to the current projection without doing any work to get there.

Key implementation details

To get the curved trajectory lines we just add a MapLineSeries to our chart, add data items to it with points to connect and amCharts Maps takes care of the rest.

Another interesting point in this demo is those map grid lines. You also get them for free by adding a GraticuleSeries to your map chart.

Related tutorials

Demo source