edit-meta: fix location ref
Signed-off-by: Varun Patil <varunpatil@ucla.edu>pull/563/head
parent
120757f335
commit
9e7a6a0bd1
|
@ -254,8 +254,10 @@ class MigrateGoogleTakeout extends Command
|
|||
}
|
||||
|
||||
// Special case: if $txf has both GPSLatitude and GPSLongitude,
|
||||
// also specify GPSCoordinates, since videos need this
|
||||
// also specify GPSCoordinates, since videos need this and refs
|
||||
if (isset($txf['GPSLatitude'], $txf['GPSLongitude'])) {
|
||||
$txf['GPSLatitudeRef'] = $txf['GPSLatitude'];
|
||||
$txf['GPSLongitudeRef'] = $txf['GPSLongitude'];
|
||||
$txf['GPSCoordinates'] = $txf['GPSLatitude'].', '.$txf['GPSLongitude'];
|
||||
}
|
||||
|
||||
|
|
|
@ -210,6 +210,8 @@ export default defineComponent({
|
|||
return {
|
||||
GPSLatitude: this.lat,
|
||||
GPSLongitude: this.lon,
|
||||
GPSLatitudeRef: this.lat,
|
||||
GPSLongitudeRef: this.lon,
|
||||
GPSCoordinates: `${this.lat.toFixed(6)}, ${this.lon.toFixed(6)}`,
|
||||
};
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue