Experiment: more finetuning of the filepickers, see #2202

This commit is contained in:
Pieter Vander Vennet 2024-11-25 18:00:30 +01:00
parent 86baf130f3
commit 6900dedd3e
4 changed files with 17 additions and 11 deletions

View file

@ -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)) {