Drawing a polygon and a polyline Drawing a polygon and a polyline The following code example places a polygon and polyline with specific coordinates on a map.