links for 2009-09-22

  • This library makes it easy to generate an image "snapshot" of your interactive map, using the Google Static Maps API.

    The default behavior adds a control to the map, and then shows a popup with the snapshot when the control is clicked. However, the control can be hidden and the generated snapshot URLs can be programmatically retrieved, so the library may be used in a more flexible manner.

    This control can detect the standard overlays (GMarker, GPolygon, GPolyline) and render them in the snapshot, and in the case of a poly with many points, it can pass in the points as an encoded string, resulting in a shorter URL.

  • Every major open-source project has its own style guide: a set of conventions (sometimes arbitrary) about how to write code for that project. It is much easier to understand a large codebase when all the code in it is in a consistent style.

    “Style” covers a lot of ground, from “use camelCase for variable names” to “never use global variables” to “never use exceptions.” This project holds the style guidelines we use for Google code. If you are modifying a project that originated at Google, you may be pointed to this page to see the style guides that apply to that project.

    Our Python Style Guide,C++ Style Guide and Objective-C Style Guide are now available. We have also released cpplint, a tool to assist with style guide compliance, and google-c-style.el, an Emacs settings file for Google style.