PDA

View Full Version : Embedding a map view of a gallery or keyworded photos


canghuixu
Jul-26-2009, 01:43 PM
In case it is useful to anyone, I just posted an entry to my blog explaining how to embed maps views of galleries or keywords in Smugmug gallery descriptions, blog entries (http://canghuixu.blogspot.com/2009/07/embedding-maps-of-smugmug-photos.html), etc, by importing KML feeds from Smugmug into Google Maps and then creating HTML code for embedding. I did this because I never figured out how to easily and nicely embed a map view of a gallery from map.smugmug.com in a blog or other site. While getting a KML feed for a gallery to drop into Google Maps is pretty straightforward, getting a KML feed for a keyword seems to require a trick, but it is doable. If you're interested, please check it out. The approach I describe is limited since the map view won't be dynamically updated after you add photos to a gallery or keyword, since the map generated in Google Map is created from a one-time import of the feed you provide.

While I'm at it, in looking at discussions of geotagging, I notice that many others have the same wish that I have, which is to be able to geotag galleries, not just individual photos. In particular, for quite a while I wanted to create something like an embeddable Around the World view based on galleries, not recent photos, so that visitors can get a better sense of the variety available on my site, not just the last 150 place I've been. Since I'm not sure if this will ever happen, I took matters into my own hands, and began creating a gallery-based Around the World manually, in My Maps under Google Maps. I created a map in My Maps under Google Maps, then manually added pushpins with links to specific galleries and collections on my Smugmug site. I embedded the resulting map in a description for an otherwise empty gallery by copying and pasting HTML generated by Google Maps, you can check out the result here (http://canghuixu.smugmug.com/gallery/8522367_nAmGo). Or you can look at the map directly at Google Maps (http://maps.google.com/maps/ms?ie=UTF8&hl=en&t=h&msa=0&msid=114371952028888531729.0004673288eeb34d7c70f&z=2).

I would like to add my voice to the chorus asking for geotagging of galleries so that I could have a gallery-based Around the World like the one I am building manually, without all the toil of adding pushpins one by one to a map in Google Maps.

I hope someone finds this useful. Note that since this isn't my day job, I can't provide any support for any of this or answer questions. Hopefully it is enough to get people started.

Enjoy!