title: Get all coordinates between two points of a polyline when clicked
body: <p>I have set up a <a href="http://jsfiddle.net/himal/S66sR/3/" rel="nofollow">sample polyline</a> from given coordinates.</p>
  
  <pre><code>coordinates = [
                      [52.908902047770276,-116.015625],
                      [52.908902047770276,-116.015625],
                      [53.12040528310657,-115.6640625],
                      [53.12040528310657,-115.6640625],
                      [53.33087298301704,-115.6640625],
                      [53.33087298301704,-115.6640625],
                      [53.74871079689897,-115.6640625],
                      [53.74871079689897,-115.6640625],
                      [54.36775852406841,-115.6640625],
                      [54.36775852406841,-115.6640625],
                      [54.97761367069625,-115.3125],
  ......]
  </code></pre>
  
  <p>When the polyline is clicked, the returned coordinates do not match the coordinates from which the polyline was built.</p>
  
  <p>Is there a way to get all the coordinates between two points of the polyline that belong to the given list of coordinates when the polyline is clicked ?</p>
  
  <p>Also when the map is zoomed, the clicked marker goes off the path off the polyline.</p>