diff --git a/src/layer/GeoJSONWorkerLayer.js b/src/layer/GeoJSONWorkerLayer.js index 1270265..ebb8190 100644 --- a/src/layer/GeoJSONWorkerLayer.js +++ b/src/layer/GeoJSONWorkerLayer.js @@ -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 diff --git a/src/layer/tile/GeoJSONTile.js b/src/layer/tile/GeoJSONTile.js index e1813fe..1b2cbfa 100644 --- a/src/layer/tile/GeoJSONTile.js +++ b/src/layer/tile/GeoJSONTile.js @@ -349,7 +349,9 @@ class GeoJSONTile extends Tile { this._ready = true; // console.timeEnd(this._tile); - }).catch(() => {}); + }).catch((err) => { + console.error(err); + }); } _abortRequest() {