forked from MapComplete/MapComplete
		
	Small tweaks
This commit is contained in:
		
							parent
							
								
									38f645a89d
								
							
						
					
					
						commit
						c0fc459646
					
				
					 3 changed files with 70 additions and 67 deletions
				
			
		|  | @ -37,11 +37,12 @@ export class Overpass { | |||
|         } | ||||
|         Utils.downloadJson(query) | ||||
|             .then(json => { | ||||
|                 if (json.elements === [] && json.remarks.indexOf("runtime error") > 0) { | ||||
|                 if (json.elements === [] && (json.remarks.indexOf("runtime error") > 0)) { | ||||
|                     console.log("Timeout or other runtime error"); | ||||
|                     onFail("Runtime error (timeout)") | ||||
|                     return; | ||||
|                 } | ||||
|                  | ||||
| 
 | ||||
|                 ExtractRelations.RegisterRelations(json) | ||||
|                 // @ts-ignore
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue