Playing with Google Maps API

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.

5 Comments

  1. Posted 22 September, 2005 at 3:12 am | Permalink

    Nice stuff, how about implementing that to the ubuntu WorldWide section. It would make it much more fun. The german site ubuntuusers has it already: http://www.ubuntuusers.de/map.php

  2. fatal
    Posted 22 September, 2005 at 9:50 pm | Permalink

    Found a bug:

    ChenYu (jcome)
    Foshan, China

    China (as far as I know) is not located in northern Sweden (next to the Finnish border). :)

  3. Posted 23 September, 2005 at 1:21 pm | Permalink

    My code doesn’t attempt to correct invalid data. It looks like that person entered his details incorrectly on the wiki page (switching latitude and longitude by the looks of it).

  4. Posted 4 October, 2005 at 1:34 pm | Permalink

    Well.. I made a map of my friends and sent out a link to all of them only to have them point out that the map doesn’t work in Internet Explorer :-(

    Now I don’t even know Javascript, leave alone browser specific js.. any idea what’s going wrong?

  5. Posted 8 November, 2005 at 5:33 am | Permalink

    Something new on the IE issue ?