kopia lustrzana https://github.com/robhawkes/vizicities
Add catches for tile errors
rodzic
fce6e1a599
commit
978ffd3b09
|
@ -49,7 +49,9 @@ class GeoJSONWorkerLayer extends Layer {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Process GeoJSON
|
// 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
|
// Use workers to request and process GeoJSON, returning data structure
|
||||||
|
|
|
@ -349,7 +349,9 @@ class GeoJSONTile extends Tile {
|
||||||
|
|
||||||
this._ready = true;
|
this._ready = true;
|
||||||
// console.timeEnd(this._tile);
|
// console.timeEnd(this._tile);
|
||||||
}).catch(() => {});
|
}).catch((err) => {
|
||||||
|
console.error(err);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
_abortRequest() {
|
_abortRequest() {
|
||||||
|
|
Ładowanie…
Reference in New Issue