title: Editable polyline connecting every point in Google Maps API V3
body: <p>I am trying to draw editable polyline that connects all points I click on using Google Maps API V3.</p>
  
  <p>For example, after clicking on 4 different points on the map there should be 6 lines connecting all 4 points, while making these lines editable.</p>
  
  <p>I have found this example ( <a href="http://www.ekelschot.eu/demo/maps/enableEditing.html" rel="nofollow">http://www.ekelschot.eu/demo/maps/enableEditing.html</a> ) which does create editable lines but there would only be 3 lines in case of 4 points.</p>
  
  <p>Could I get some help as to how to do this please? I am very new to javascript, please excuse my ignorance on this matter.</p>
  
  <p>Thank you.</p>
  
  <p>Code of the example above: <a href="http://snipplr.com/view/38270/google-maps-api-v3--enableediting-polylines/" rel="nofollow">http://snipplr.com/view/38270/google-maps-api-v3--enableediting-polylines/</a></p>