Note that points you pass when creating a polygon shouldn't have an additional last point equal to the first one — it's better to filter out such points.
||Instantiates a polygon object given an array of geographical points and optionally an options object (the same as for Polyline). You can also create a polygon with holes by passing an array of arrays of latlngs, with the first latlngs array representing the exterior ring while the remaining represent the holes inside.|
Polygon has the same options and methods as Polyline, with the following differences:
||Returns a GeoJSON representation of the polygon (GeoJSON Polygon Feature).|