I have an irregular polygon made from X coordinate pairs. Is there a way to create a rectangle that surrounds my polygon? I'm using Google Map JS to create polygons.
I want to get A and B latlng to create a rectangle as image