From 3f3dfc78bd4317ab0dc321fb3d3678c5f07f9bb5 Mon Sep 17 00:00:00 2001 From: "Lukas Rieger (Blue)" Date: Sun, 31 Jul 2022 18:06:07 +0200 Subject: [PATCH] Switch to tiles with added wrapper-object for future additional data --- src/map/TileLoader.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map/TileLoader.js b/src/map/TileLoader.js index af897f5..cd482ce 100644 --- a/src/map/TileLoader.js +++ b/src/map/TileLoader.js @@ -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;