The map displays
my flickr photos that have been
geotagged. The map is made with the
google maps API and the
Update uses http://phpflickr.com/ to access the
flickr API. Only need to update when there are new geotagged photos, eventually will auto update once a day.
I had to do some horrible stuff to get the images with the same location to turn into the slideshows, I am sure this could all be improved a lot. I'd like it to look like this
I needed to store the list of photos and locations locally as there seems to be a wee bug in the flickr API which strips the decimal point and - out of geo tags when searching for photos, so you have to make a query for each photo which takes too long for using on this page. Clicking Update will show you how long.
So the way this works:
- The update script creates a file with the information about my geotagged photos. I guess it would be more portable to use xml to store data, but I don't know that much about it.
- This page grabs a list from that file via this script, optionally filtering by date
- And the displays it with the google maps api using lightbox to show larger versions of the images. The lightbox will only work once the whole page is loaded(see lightbox support)
less