forked from MapComplete/MapComplete
		
	Changes based on user feedback
This commit is contained in:
		
							parent
							
								
									118a60c805
								
							
						
					
					
						commit
						1738fc4252
					
				
					 16 changed files with 342 additions and 64 deletions
				
			
		|  | @ -44,6 +44,11 @@ export class Overpass { | |||
|                     console.log("Query failed") | ||||
|                     onFail(status); | ||||
|                 } | ||||
|                  | ||||
|                 if(json.elements === [] && json.remarks.indexOf("runtime error") > 0){ | ||||
|                     console.log("Timeout or other runtime error"); | ||||
|                     return; | ||||
|                 } | ||||
|                 // @ts-ignore
 | ||||
|                 const geojson = OsmToGeoJson.default(json); | ||||
|                 continuation(geojson); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue