Playing with Google Maps API

  • Post author:
  • Post category:Uncategorized

I finally got round to playing with the Google Maps API, and the results can be seen here. I took data from the GnomeWorldWide wiki page and merged in some information from the Planet Gnome FOAF file (which now includes the nicknames and hackergotchis).

The code is available here (a BZR branch, but you can easily download the latest versions of the files directly). The code works roughly as follows:

  • Convert the locations info GnomeWorldWide page into an XML file, adding information from the Planet Gnome FOAF file using the makexml.py script.
  • When the main page loads, it requests the XML file previously generated. For each person element in the XML file, a marker is created on the map.
  • When a marker is clicked, an info window is displayed, which is the result of applying an XSLT transformation to the XML node.