Switch to tiles with added wrapper-object for future additional data
This commit is contained in:
parent
d703a3cf39
commit
3f3dfc78bd
|
@ -60,7 +60,8 @@ export class TileLoader {
|
||||||
|
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
this.fileLoader.load(tileUrl + '?' + this.tileCacheHash,
|
this.fileLoader.load(tileUrl + '?' + this.tileCacheHash,
|
||||||
geometryJson => {
|
json => {
|
||||||
|
let geometryJson = json.tileGeometry;
|
||||||
if (!geometryJson.type || geometryJson.type !== 'BufferGeometry'){
|
if (!geometryJson.type || geometryJson.type !== 'BufferGeometry'){
|
||||||
reject({status: "empty"});
|
reject({status: "empty"});
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue