forked from MapComplete/MapComplete
More layout tweaks and fixes
This commit is contained in:
parent
b678efffd1
commit
2019e6c34c
11 changed files with 161 additions and 99 deletions
|
|
@ -134,11 +134,16 @@ export class MoveWizardState {
|
|||
// 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 !== undefined && tags._referencing_ways !== "[]") {
|
||||
console.log("Got referencing ways according to the tags")
|
||||
this.moveDisallowedReason.setData(t.partOfAWay)
|
||||
return true
|
||||
}
|
||||
try{
|
||||
|
||||
if (tags._referencing_ways !== undefined && tags._referencing_ways !== "[]") {
|
||||
console.log("Got referencing ways according to the tags")
|
||||
this.moveDisallowedReason.setData(t.partOfAWay)
|
||||
return true // unregister
|
||||
}
|
||||
}catch (e) {
|
||||
console.error("Could not get '_referencing_ways'-attribute of tags due to", e)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue