forked from MapComplete/MapComplete
Feat: upload to specified panoramax instance
This commit is contained in:
parent
35b4943948
commit
3df0f9ca94
3 changed files with 5 additions and 4 deletions
|
|
@ -204,10 +204,10 @@ export class PanoramaxUploader implements ImageUploader {
|
|||
console.error("Could not read EXIF-tags")
|
||||
}
|
||||
|
||||
let [lon, lat] = currentGps
|
||||
const [lon, lat] = currentGps
|
||||
|
||||
const p = this._panoramax
|
||||
const defaultSequence = (await p.mySequences())[0]
|
||||
const defaultSequence = (await p.mySequences()).find(s => s.id === Constants.panoramax.sequence)
|
||||
const img = <ImageData>await p.addImage(blob, defaultSequence, {
|
||||
// It might seem odd that we set 'undefined' here - keep in mind that, by default, panoramax will use the EXIF-data
|
||||
// We only pass variables as fallback!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue