forked from MapComplete/MapComplete
Fix #1809
This commit is contained in:
parent
a143ecfb2a
commit
c70ab96427
1 changed files with 9 additions and 0 deletions
|
@ -130,6 +130,15 @@ export class MoveWizardState {
|
||||||
this.moveDisallowedReason.setData(t.partOfRelation)
|
this.moveDisallowedReason.setData(t.partOfRelation)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
} else {
|
||||||
|
// This is a new point. Check if it was snapped to an existing way due to the '_referencing_ways'-tag
|
||||||
|
const store = this._state.featureProperties.getStore(id)
|
||||||
|
store?.addCallbackAndRunD((tags) => {
|
||||||
|
if (tags._referencing_ways !== "[]") {
|
||||||
|
console.log("Got referencing ways according to the tags")
|
||||||
|
this.moveDisallowedReason.setData(t.partOfAWay)
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue