Fix error on loading empty tiles

This commit is contained in:
Lukas Rieger (Blue) 2022-08-01 16:33:23 +02:00
parent 3f3dfc78bd
commit 3d37231109
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2

View File

@ -61,7 +61,7 @@ export class TileLoader {
return new Promise((resolve, reject) => {
this.fileLoader.load(tileUrl + '?' + this.tileCacheHash,
json => {
let geometryJson = json.tileGeometry;
let geometryJson = json.tileGeometry || {};
if (!geometryJson.type || geometryJson.type !== 'BufferGeometry'){
reject({status: "empty"});
return;