title: google maps v3 distance
body: <p>Trying to create a new version of the map functions seen here: <a href="http://www.daftlogic.com/projects-google-maps-distance-calculator.htm" rel="nofollow">http://www.daftlogic.com/projects-google-maps-distance-calculator.htm</a>
  but using the v3 api.</p>
  
  <p>So far I am able to set markers on click and can draw the geodesic polyline.
  The issues I am currently running into are:</p>
  
  <ul>
  <li>Updating the poly-line on marker drag</li>
  <li>I'm pretty sure I have to put each marker in an array and do a for
  loop so that I can keep clicking and adding points that will add to
  the total distance.</li>
  <li>Properly displaying distance.</li>
  </ul>
  
  <p>I have created a jsfiddle:   <a href="http://jsfiddle.net/wyZyS/" rel="nofollow">http://jsfiddle.net/wyZyS/</a></p>
  
  <p>EDIT:  I realize I have nothing calling the "update" function.  I am trying to create the array for each marker currently.  The calculation you see is converting meters to nautical miles.</p>