forked from MapComplete/MapComplete
		
	Chore: housekeeping
This commit is contained in:
		
							parent
							
								
									8178c5607b
								
							
						
					
					
						commit
						cd0d275965
					
				
					 73 changed files with 2105 additions and 2219 deletions
				
			
		| 
						 | 
				
			
			@ -134,16 +134,15 @@ 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) => {
 | 
			
		||||
                try{
 | 
			
		||||
 | 
			
		||||
                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)
 | 
			
		||||
                    }
 | 
			
		||||
                } 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