SnapshotControl makes it easy to generate an image “snapshot” of your interactive map, using Google Static Maps API v2. The default behavior of the control is to add a button on the map, and that button pops up a snapshot when clicked. However, the control can be hidden and the generated snapshot URLs can be programmatically retrieved, so that the library may be used in a more flexible manner. This control also knows how to encode polylines, using the Douglas-Peucker algorithm, which means that it can be used on maps with very long paths. For e.g. the control can create static maps for driving direction routes, as shown in demo. Check this demo to play with different options and see the generated URL.
More info: SnapshotControl