Switch to tiles with added wrapper-object for future additional data

This commit is contained in:
Lukas Rieger (Blue) 2022-07-31 18:06:07 +02:00
parent d703a3cf39
commit 3f3dfc78bd
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
1 changed files with 2 additions and 1 deletions

View File

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