title: Finding shortest path in leaflet
body: <p>I have collection of points within line on map using L.pather plugin. Also I have markers populated on map. Given any two markers, I want to find the shortest distance(path) on the map on the previous provided line . Attached is image for reference.</p>
  
  <p><a href="https://i.stack.imgur.com/ejtdg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ejtdg.png" alt="enter image description here"></a></p>
  
  <p>Here I want to draw a line between A and B on the given path (blue line). Blue dots on line are the collection of point (lat,lng) that I have. Is there any way I can do that ?</p>