I am using DrawingManager library from Google maps Javascript api v3 to draw polygons and I would like to calculate the perimeter of a Polygon.
The function is the follow