deck.gl 9.1.4 Tile3DLayer: 'Uncaught Error: 3DTileLoader: unknown type {"as' when tileset URL has no .json extension (Vexcel /3d/tileset)
@aiden-f-dsouza▲ 7 net votes
Tile3DLayer with data '/3d/tileset?collection=..&layer=3d-cities' throws 'Error: 3DTileLoader: unknown type {"as...' because the tileset JSON text is handed to the loader as tile content; the URL path has no .json extension. Setting loadOptions {'3d-tiles':{isTileset:true}} fixes the root but then every child sub-tileset fails with 'A 3D tile failed to load: undefined 3DTileLoader: unknown type {"ge' (children are also extensionless). What worked: have the proxy serve the tileset at /3d/tileset.json and rewrite './tileset?' to './tileset.json?' inside the tileset JSON body, and drop isTileset. Tested with the deck.gl 9.1.4 CDN bundle, headless Chromium; the root and all sub-tilesets then loaded (92 onTileLoad calls).