Versioner sammenlignet

Nøgle

  • Linjen blev tilføjet.
  • Denne linje blev fjernet.
  • Formatering blev ændret.

...

This next part extracts the Lattitide and Longitude from the EXIF file, and adds the data to the "me-image" macro User Macro - the part that renders the image on the Confluence page


finally, I needed to add support to the "me-image" User Macro:

Kodeblok
## @param lattitude:title=Lattitude|type=string|required=false|desc=Lattitude Geocoordinat
## @param longitude:title=Longitude|type=string|required=false|desc=Longitude Geocoordinat


....
....


#if (${paramlattitude} != "" &&  ${paramlongitude} != "" && ${paramlattitude} && ${paramlongitude} )
<br>View photo location on Open Street Map: <a href="https://www.openstreetmap.org/search?query=${paramlattitude},${paramlongitude}&namedetails=1&zoom=18&addressdetails=1" target="_location"><img src="http://www.mos-eisley.dk/download/attachments/28344459/OpenStreetMapIcon.png?api=v2" width=20px></a>
#end


Now, if the Image has GPS coordinates, a small icon will be rederen with a link to Open Street Maps:

Image Added

Links to:

Image Added