This function takes a population graph that has been 'decorated' with sufficient spatial data to make a KML file from it for viewing in GoogleEarth.
The location to save the kml to (if not passed, it returns it)
The text of the KML file to be saved or viewed in the appropriate editor.
Rodney J. Dyer <email@example.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.