I want you to create a google map script where the user will be able to click on the map to create a polyline, and then transform it into a polygon.
Finally with a save button all the coordinates will be able to be saved in a string variable.
There should be also a button called "Undo" that will undo the last click event on the map.
There should be a button "Edit" that will allow to edit the polygon lines by dragging them.
You may see an example that has much more options that I do not want.
[url removed, login to view]
Also, there are multiple already made scripts on the web.
You may use them as well.