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}`);