Polygon is not working

polygon drawing on the map is not working - defaulting to point, once we selected a point