• Posted by Peter Haza
  • On April 27, 2008

  • Filed under PHP

  • 2 Comments

Image + Geotag + automation = Map Gallery

My latest personal project is a wordpress plugin that automatically reads geotags from images and adds the image as a point on a google map. You insert the map using a shortcode ([map_gallery]) and there you go. Shortcodes were introduced with WordPress 2.5, and I rely on some PHP5 functions, so those are the requirements. You can see a live example on my Map Gallery page.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

2 comments

  1. Posted by Chris Gray 15th August, 2008 at 02:03 am |

    Nice work, have you developed it any more than this? And do you have to rebuild the geotag index every time you add more photos or does it to it on the fly?

    If you could add custom size map support it’d be even better. :)

  2. Posted by Peter Haza 15th August, 2008 at 06:10 pm |

    @Chris: I haven’t really done anything more on this yet, but custom size map is already supported. Currently map_gallery supports:

    • width
    • height
    • latitude
    • longitude
    • map_controls
    • button_controls

    You set their default values in plugin settings page, but they can be overridden using the shortcodes.

    Feel free to fork and send patches if you’d like to keep developing it: http://github.com/phaza/map_gallery/tree/master

What do you think? Join the discussion...