Polyline.enableEditing and Polyline.enableDrawing are two features of GMaps v2 that have not made it into v3. This is a work in progress to add this functionality.
JavaScript Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
html
javascripts
.gitignore
README
build.bash

README

The purpose of this is to add enableDrawing, enableEditing, and disableEditing to a GMap API v3
	Polyline and Polygon.  Right now it is only applied to a Polyline.  To use this,
	instead of doing "new google.maps.Polyline", do "new google.mapsextensions.Polyline" with the
	same interface.  The new polyline has enableDrawing, enableEditing, and disableEditing with the
	same options as v2 of the API.

This release makes use of the Latitude/longitude spherical geodesy formulae & scripts written by
Chris Veness.  His page and notes can be found at: http://www.movable-type.co.uk/scripts/latlong.html 

Released under the Creative Commons Attribution 3.0 Unported license
http://creativecommons.org/licenses/by-sa/3.0/

Example of how to use this can be found in html/test.html.

Online demo can be found at: http://www.shanetomlinson.com/static/gmapV3EditablePolys/html/test.html

TODO:
* Fix up the Drag/Drop of markers to make more reliable
* remove marker dependency on jQuery
* Make markers only appear when enableEditing is called and when mousing over the Polyline