Skip to content

Commit

Permalink
Update modules/3d-tiles/src/lib/ion/ion.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Ib Green <[email protected]>
  • Loading branch information
techtruth and ibgreen authored Oct 11, 2024
1 parent 5c41f9d commit b533bac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/3d-tiles/src/lib/ion/ion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export async function getIonTilesetMetadata(accessToken, assetId) {
// Step 2: Query metdatadata for this asset.
const ionAssetMetadata = await getIonAssetMetadata(accessToken, assetId);
const type = ionAssetMetadata.type;
const url = ionAssetMetadata.options?.url;
// As of Oct 2024 ion service now returns the resource URL in an options object
const url = ionAssetMetadata.options?.url || ionAssetMetadata.url;
assert(type === '3DTILES' && url);

// Prepare a headers object for fetch
Expand Down

0 comments on commit b533bac

Please sign in to comment.