Leaflet.MovingMarker will allow to move markers along a polyline with custom durations. Go to leaflet and clone the repository. In examples you will see script.js, open the file and change the zoom level, longitudes and latitudes.

Note: In leaflet (lat,lon) format is followed.

The output will be as following:

screenshotslll

 

 

Share: