A single polyline can be also drawed in a static map:
url = GMaps.staticMapURL({
size: [610, 300],
lat: -12.043333,
lng: -77.028333,
polyline: {
path: path,
strokeColor: '#131540',
strokeOpacity: 0.6,
strokeWeight: 6
// fillColor: '#ffaf2ecc'
}
});
$('<img/>').attr('src', url).appendTo('#map');
An optional fillColor would indicates both that the path is a polygon and specifies the fill color to use.