Small tweaks

This commit is contained in:
Pieter Vander Vennet 2021-08-23 18:49:28 +02:00
parent 38f645a89d
commit c0fc459646
3 changed files with 70 additions and 67 deletions

View file

@ -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