Polyline
A Polyline is a line that is drawn through a series of coordinates in an ordered sequence.
Polygon
A Polygon is similar to a Polyline in that it consists of a series of coordinates in an ordered sequence. However, polygons are designed to define regions within a closed loop.
Polygons are made of straight lines, and the shape is "closed" (all the lines connect up).
A polygon supports the following properties:
path - specifies several LatLng coordinates for the line (first and last coordinate are equal)
strokeColor - specifies a hexadecimal color for the line (format: "#FFFFFF")
strokeOpacity - specifies the opacity of the line (a value between 0.0 and 1.0)
strokeWeight - specifies the weight of the line's stroke in pixels
fillColor - specifies a hexadecimal color for the area within the enclosed region (format: "#FFFFFF")
fillOpacity - specifies the opacity of the fill color (a value between 0.0 and 1.0)
editable - defines whether the line is editable by users (true/false)
Example