Add catches for tile errors

feature/threejs-update
Robin Hawkes 2016-11-29 17:26:13 +00:00
rodzic fce6e1a599
commit 978ffd3b09
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 1EC4C2D6765FA8CF
2 zmienionych plików z 6 dodań i 2 usunięć

Wyświetl plik

@ -49,7 +49,9 @@ class GeoJSONWorkerLayer extends Layer {
}
// Process GeoJSON
return this._process(this._geojson);
return this._process(this._geojson).catch((err) => {
console.error(err);
});
}
// Use workers to request and process GeoJSON, returning data structure

Wyświetl plik

@ -349,7 +349,9 @@ class GeoJSONTile extends Tile {
this._ready = true;
// console.timeEnd(this._tile);
}).catch(() => {});
}).catch((err) => {
console.error(err);
});
}
_abortRequest() {