google-maps-draw-shape-lib is a javascript library written over a small set of the Google Maps API, that allows you to draw a polygon shape over a google map and get it's coordinates.