Editable Polygons in GoogleMaps

What I’m trying to do:
Hello everyone!
I’m drawing editable Polygons in Google Maps and then calculating the centre of the polygon averaging the obtained coordinates. It’s working perfectly if I draw the polygon and than calculate the centre.

However, I couldn’t figure out how to get the edited coordinates if I edit them by dragging the points on the map.
In fact, if I draw the polygon, then I edit it and finally I calculate the centre, I get the center of the original polygon (before edits).

Is it possible to get the updated vertex of the polygon?

I have tried to get the old polygon self.p path and create a new polygon but is not working. Looks like the old path is not updated.

self.p_updated = GoogleMap.Polygon(path=self.p.path, stroke_color='yellow', stroke_weight=3,
                      fill_color='yellow', editable=False)
self.map_1.add_component(self.p_updated)   

Thanks for the help!