Cesium viewer for testing local tileset.json trees, with a nix run launcher that serves the current directory with CORS.
From any directory containing a tileset.json:
nix run github:3dgi/tvTo force a rebuild of the viewer app:
nix run --refresh github:3dgi/tvThis is only necessary if this repo had an update.
Optional flags:
nix run github:3dgi/tv -- --port 8090 --tileset path/to/tileset.jsonRun from the local repository:
git clone git@github.com:3DGI/tv.git
cd ./tv
nix run .To force a rebuild of your local checkout:
nix run --refresh .Run from a directory containing tileset.json:
cd /path/to/tileset-dir
nix run --refresh ./tvServe a tileset from a different directory:
nix run --refresh ./tv -- --tileset /path/to/tileset-dir/tileset.jsonOptional flags:
nix run --refresh ./tv -- --port 8090 --viewer-port 8091 --tileset /path/to/tileset.jsonThe command starts a local static server with permissive CORS headers and prints:
- the local tileset URL
- a local viewer URL
The viewer includes a Terrain selector with three modes:
NoneCesium World Terrain(requires a Cesium Ion token)PDOK Quantized Meshviahttps://api.pdok.nl/kadaster/3d-basisvoorziening/ogc/v1/collections/digitaalterreinmodel/quantized-mesh
The selected terrain mode is persisted in the URL as the terrain query parameter.