Draw an animated line between two markers in MapBox

Fermé
Hichamisto Messages postés 52 Date d'inscription jeudi 26 juin 2014 Statut Membre Dernière intervention 4 juillet 2017 - 7 oct. 2015 à 14:35
I'm new to mapbox
I import some markers from a csv file, and i can draw lines between them manually , from each port to its destination. for example from Morocco to China, but if i show you my map, you can't know where is the Port and what is the Destination : from Morocco to China or the reverse. so, for this reason i would like draw an animated line from each port to its destination.
For the moment i don't have any code, i found in the below link how to draw an animated line but i couldn't do it between to markers, because they talk about a sinusoidal function.
https://docs.mapbox.com/mapbox.js/example/v1.0.0/dynamically-drawing-a-line/ Can you help me please ?
Thank you !