forked from MapComplete/MapComplete
Experiment: more finetuning of the filepickers, see #2202
This commit is contained in:
parent
86baf130f3
commit
6900dedd3e
4 changed files with 17 additions and 11 deletions
|
@ -157,14 +157,15 @@ export class ImageUploadManager {
|
|||
blob: File,
|
||||
targetKey: string | undefined,
|
||||
noblur: boolean,
|
||||
feature?: Feature
|
||||
feature?: Feature,
|
||||
ignoreGps: boolean = false
|
||||
): Promise<UploadResult> {
|
||||
this.increaseCountFor(this._uploadStarted, featureId)
|
||||
let key: string
|
||||
let value: string
|
||||
let absoluteUrl: string
|
||||
let location: [number, number] = undefined
|
||||
if (this._gps.data) {
|
||||
if (this._gps.data && !ignoreGps) {
|
||||
location = [this._gps.data.longitude, this._gps.data.latitude]
|
||||
}
|
||||
if (location === undefined || location?.some((l) => l === undefined)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue