Polygon

This example is a lot like polyline. Notice that for plygon the line is closed.

The fill attribute can be set to a color.