From 24d1f4f2f91e0aa8b9a72990a29a52655945697e Mon Sep 17 00:00:00 2001 From: Jeremy Calvert Date: Sat, 20 May 2023 12:44:07 -0700 Subject: [PATCH] Negative because it's west longitude, apparently. --- public/assets/drag-and-drop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/assets/drag-and-drop.js b/public/assets/drag-and-drop.js index c1282ba..265efe2 100644 --- a/public/assets/drag-and-drop.js +++ b/public/assets/drag-and-drop.js @@ -24,7 +24,7 @@ function readURL(input) { var allMetaDataSpan = document.getElementById('allMetaDataSpan'); // allMetaDataSpan.innerHTML = JSON.stringify(allMetaData, null, '\t'); var lat = convertDMSToDD(EXIF.getTag(this, 'GPSLatitude')); - var long = convertDMSToDD(EXIF.getTag(this, 'GPSLongitude')); + var long = -convertDMSToDD(EXIF.getTag(this, 'GPSLongitude')); // Negative because it's west longitude $('#lat').val(lat); $('#long').val(long); console.log(`lat: ${lat}, long: ${long}`);