[OpenLayers-Users] Display geotagged photos in OpenLayers

Hendrik Oesterlin hendrikmail2002 at yahoo.de
Tue Aug 16 04:47:16 EDT 2011


Hello,

I am trying to display geotegged photos in an OpenLayers overlay in an
easy way.

I there a function that reads all jpg from an folder (or from a .txt
list of individual paths) and puts them on the right spot depending on
GPS position stored in EXIF data?

Please find a sample photo here:

www.oesterlin.ile.nc/div/DSC01090.JPG

I'm avare that I could achieve this using some code like this:

var Photos = new OpenLayers.Layer.Text("Photos",{location:"data/photos.txt", projection: epsg4326});
map.addLayer(Photos);

and the photos.txt file like
lon     lat     title   description     icon    iconSize
166.859902      -22.231191      Chutes de la Madeleine  <html><img src="data/DSC01090.jpg" width="480" height="640" border="1"/><br>photo DSC01090.jpg</html>   data/DSC01090.jpg       18,15

but was unable to figure out how to make the pop up bigger to fit to
the photo, and how to make a little X in the pop up to close it in an
intuitive manner.
Additionnaly, it is not convenient to add the lat lon by hand to the
text file for each photo.

Find an test version here:
http://www.oesterlin.ile.nc/test/20110816test-carte.html

Thank you for every hint!

Regard
Hendrik



More information about the Users mailing list