CityGML
Load CityGML files using the loadModel method. Supported formats are .gml, .city.json and .gmlzip
Example
1. Create a download token
Request a download tokendownload token for the asset stored in the documents section providing the format model/gltf-binary.
curl --request POST \
--url 'https://api.catenda.com/v2/projects/{PROJECT_ID}/libraries/{LIBRARY_ID}/items/{DOCUMENT_ID}/token?format=model/gltf-binary' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'2. Use the token to load the model
Invoke the loadModel method with the asset URL, model type and format.
const options = { modelType: "mesh", format: "gltf" };
const url = "https://api.catenda.com/v2/download?token={TOKEN}";
viewer3d.loadModel(url, options);