forked from MapComplete/MapComplete
Merge branch 'master' of source.mapcomplete.org:MapComplete/MapComplete
This commit is contained in:
commit
6c8c4a3cf3
12 changed files with 117 additions and 37 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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] ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue