Show GPS location
I made a jAlbum skin PhotoSwipe (see http://jalbum.net/en/skins/skin/PhotoSwipe) and I like to give this skin the same fuctionallity as my Slide Show 4 skin.
So I like to add to the Share / Download image menu a new entry 'Show GPS location' which shows the GPS location in Google Maps with a function like this:
function OpenGoogleMaps() {
if (typeof(gMap) != "undefined") {
if (gMap[slide_index].length > 0) {
window.open("<a rel="nofollow noreferrer" href="http://maps.google.com/maps?q="">http://maps.google.com/maps?q="</a>; + gMap[slide_index] + "");
}
}
};
In this case I have the GPS coordinates in an array gMap, but I could save the location also in the PhotoSwipe items structure like:
GPS: 52.63294,6.42749;

2 comments
-
André Wolff commented
It has been implemented in version 1.0.4 of the jAlbum PhotoSwipe skin, see this album:
http://andrewolff.jalbum.net/Reestdal_PS/ -
André Wolff commented
To see an example, click this link:
https://www.google.com/maps/place/52%C2%B037'35.9%22N+6%C2%B024'34.9%22E/@52.6249593,6.4098026,14.71z/data=!4m2!3m1!1s0x0:0x0