You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It appears the metadata structure returned from CesiumIon has changed... When calling CesiumIonLoader.preload, it seems that the ionAssetMetadata object now has its 'url' value under 'options' such that 'options.url' is the intended value...
I am unsure when this changed, but I believe this is a change from the cesium api.
The code below is in loaders.gl and in this case url is always undefined.
const ionAssetMetadata = await getIonAssetMetadata(accessToken, assetId);
const { type, url } = ionAssetMetadata; ```
### Expected Behavior
const metadata = await CesiumIonLoader.preload(
"https://assets.ion.cesium.com/2275207/tileset.json",
{
"cesium-ion": {
accessToken:
"eyJhbG...Xyjt"
assetId: "2275207",
},
},
);
I would expect this call to work, and not fail the loader assertion.
### Steps to Reproduce
const metadata = await CesiumIonLoader.preload(
"https://assets.ion.cesium.com/2275207/tileset.json",
{
"cesium-ion": {
accessToken:
"eyJhbG..YOUR_ACCESS_TOKEN....Xyjt"
assetId: "2275207",
},
},
);
### Environment
- Framework version: 4.2.5
- Browser: Chromium 126.0.6478.182
- Node: 20.17.0
- OS: Debian
### Logs
arssert.js:11 Uncaught (in promise) Error: loader assertion failed.
at assert (assert.js:11:15)
at getIonTilesetMetadata (ion.js:30:69)
at async SurfaceScreen.loadTiles (surface.ts:131:24)
The text was updated successfully, but these errors were encountered:
You can probably try to just modify the CesiumIONLoader object in your own app, or copy it and create your own CesiumIONLoader and verify that the fix works before making a PR.
Loader
CesiumIonLoader (preload) then Tiles3DLoader
Description
It appears the metadata structure returned from CesiumIon has changed... When calling CesiumIonLoader.preload, it seems that the ionAssetMetadata object now has its 'url' value under 'options' such that 'options.url' is the intended value...
I am unsure when this changed, but I believe this is a change from the cesium api.
The code below is in loaders.gl and in this case url is always undefined.
The text was updated successfully, but these errors were encountered: