This example shows how to draw a polygon on the map. Like polylines, polygons are a set of line segments, specified as a series of points (latitudes and longitudes). The last point in the series should be the same as the first to close the polygon.
You can specify the color (in hex) and thickness ("weight") of the outline, as well as the fill color. You can also specify the opacities of the outline and fill area.