3D Tiles in CesiumJS
cesium.html loads a tileset hosted by Loka Server with CesiumJS 1.121.1 (from unpkg, so the browser needs internet access). No Cesium ion account is used: there is no base imagery and no world terrain.
cesium.html?url=<tileset.json address>[&token=<API token>]The address is on the 3D Tiles page of the console. The page runs on another origin than Loka Server: add its origin under Security → Allowed origins, and either pass a read-only API token (sent as Authorization: Bearer), make the tileset public, or switch on “Map services without token”. The token variant was not exercised in the recorded check.
What the page loaded is written to window.result and to the box in the corner.
A tiny test tileset is in tests/fixtures/golden-3dtiles.zip (written by tests/fixtures/tools/make_tileset.py).
Demo tileset: Bandung demo city
Section titled “Demo tileset: Bandung demo city”bandung-demo-city.zip (14 KB) is a small made-up city: 61 buildings and one 150 m tower, in two levels of detail (REPLACE refinement: four grey slabs that turn into four detailed tiles when you zoom in). The buildings are invented. Written by make_demo_city.py <out.zip> (standard library only). A copy is bundled in the console build (/samples/bandung-demo-city.zip).
In the console: 3D Tiles → Import demo tileset, then select the tileset and press Preview in 3D. The preview is a CesiumJS page served by Loka Server at /api/v2/tilesets3d/{id}/preview (session required, its own narrow Content-Security-Policy, CesiumJS served by Loka Server, so it works offline). loka.gl does not draw 3D Tiles yet.
Checked 2026-11-17: the zip loaded in CesiumJS 1.121.1 from a local file server (state loaded, 5 tiles with content, 610 triangles = 61 buildings, 0 failed); Go test TestTileset3DPreviewPage passes; the console typechecks and builds. Also checked 2026-11-17 on a trial server built from this code (image loka-t3d-trial:local, containers loka-t3d-api and loka-t3d-mapcache, volume loka-t3d-data, port 8088, a throwaway administrator): the Import demo tileset button on a server with no workspace created the workspace “Demo” and imported 6 files (3D Tiles 1.1, 65 KiB); the Preview in 3D page loaded all five tiles through the session (all files/… requests 200), state Loaded, 610 triangles, and drew the city with the tower. Not checked: Firefox/Safari, the token and public routes in the viewer, a large real tileset, and the live install (8081 still runs 1.2.0).
A real sample tileset: Stanford Dragon LOD (3D Tiles 1.0, b3dm)
Section titled “A real sample tileset: Stanford Dragon LOD (3D Tiles 1.0, b3dm)”From github.com/CesiumGS/3d-tiles-samples, folder 1.0/TilesetWithDiscreteLOD (licence stated in its README: CC0). Four files: tileset.json and dragon_low|medium|high.b3dm, 4.8 MB. Not stored in this repository. To use it: download those four files from raw.githubusercontent.com/CesiumGS/3d-tiles-samples/main/1.0/TilesetWithDiscreteLOD/, put them in one ZIP (inside one folder) and import it on the 3D Tiles page.
Checked 2026-11-17 on the trial server (8088): import accepted it (3D Tiles 1.0, 4 files, 4 791 036 bytes), and the preview drew the dragon (state Loaded, 2 tiles, 14 782 triangles). This is the first check of 3D Tiles 1.0 content (b3dm) in Loka; the other open items (point clouds pnts, instancing i3dm, a large tileset, a token in the viewer) are still unchecked.