Merge branch 'master' of source.mapcomplete.org:MapComplete/MapComplete

This commit is contained in:
Pieter Vander Vennet 2025-04-26 22:40:55 +02:00
commit 6c8c4a3cf3
12 changed files with 117 additions and 37 deletions

View file

@ -212,7 +212,7 @@ export class ImageUploadManager {
args.featureId
)
if (args.featureId.startsWith("note/")) {
if (!isNaN(Number(args.featureId))) {
// This is an OSM-note
const url = result.absoluteUrl
await this._osmConnection.addCommentToNote(args.featureId, url)

View file

@ -330,6 +330,9 @@ ${nds}${tags} </way>
}
private isPolygon(): boolean {
if (this.coordinates.length === 0) {
return false
}
// Compare lat and lon seperately, as the coordinate array might not be a reference to the same object
if (
this.coordinates[0][0] !== this.coordinates[this.coordinates.length - 1][0] ||