forked from MapComplete/MapComplete
Fix: fix #2304
This commit is contained in:
parent
b615c34879
commit
0a001d3c7d
2 changed files with 20 additions and 0 deletions
|
|
@ -234,6 +234,12 @@ export class PanoramaxUploader implements ImageUploader {
|
|||
) {
|
||||
lat = exifLat
|
||||
lon = exifLon
|
||||
if(tags?.GPSLatitudeRef?.value?.[0] === "S"){
|
||||
lat *= -1
|
||||
}
|
||||
if(tags?.GPSLongitudeRef?.value?.[0] === "W"){
|
||||
lon *= -1
|
||||
}
|
||||
}
|
||||
const [date, time] =( tags.DateTime.value[0] ?? tags.DateTimeOriginal.value[0] ?? tags.GPSDateStamp ?? tags["Date Created"]).split(" ")
|
||||
const exifDatetime = new Date(date.replaceAll(":", "-") + "T" + time)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue