Similar to my previous blog Arrow Lines in Openlayers3, I implemented the Arrow lines in Leaflet.js, another famous map library.

Leaflet by default don’t provide rotation for the Icon on map, I used Marker.Rotate plugin for it.

Compared to Openlayers example calculation of Arrow icon rotation are bit different and are done as per the Leaflet.js and Marker.Rotate plugin

The complete code can be found in this fiddle. Hope it helps!!