forked from MapComplete/MapComplete
Merge branch 'master' into develop
This commit is contained in:
commit
93bbd5d0b8
44 changed files with 1522 additions and 378 deletions
|
|
@ -170,6 +170,9 @@ export class ImageUploadManager {
|
|||
}
|
||||
if (location === undefined || location?.some((l) => l === undefined)) {
|
||||
feature ??= this._indexedFeatures.featuresById.data.get(featureId)
|
||||
if(feature === undefined){
|
||||
throw "ImageUploadManager: no feature given and no feature found in the indexedFeature. Cannot upload this image"
|
||||
}
|
||||
location = GeoOperations.centerpointCoordinates(feature)
|
||||
}
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue