I've drawn a polygon and I want to draw a perpendicular line to this polygon.  I found the computeOffset function of google maps api from here, but I'm using Leaflet.  Is there an equivalent function in Leaflet? 
Here is a screenshot of drawing the polyline.
I want to draw the perpendicular line that passes through the start point of the drawing polyline (the start point is marked with a marker on the screenshot). The expected result is like this.
Thank you.

