Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getIonAssetMetadata struct changed (options.url) #3128

Merged
merged 3 commits into from
Oct 11, 2024

Conversation

techtruth
Copy link
Contributor

It appears Cesium Ion has changed the return value of ${CESIUM_ION_URL}/${assetId}, when getting metadata from CesiumIonLoader.preload. Now this value has the url inside options.url instead of the top level.

This also puts the correct bearer token inside the metadata headers, coming from the input arg instead of what is returned by the query to the cesium ion api.

Copy link
Collaborator

@ibgreen ibgreen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested some backwards compatibility code. Not sure if this is needed as this code only targets the ion server, but prefer not breaking any other code that might still be working.

modules/3d-tiles/src/lib/ion/ion.ts Outdated Show resolved Hide resolved
modules/3d-tiles/src/lib/ion/ion.ts Outdated Show resolved Hide resolved
@techtruth techtruth requested a review from ibgreen October 11, 2024 15:39
@ibgreen ibgreen merged commit 7dc0374 into visgl:master Oct 11, 2024
1 of 2 checks passed
@ibgreen
Copy link
Collaborator

ibgreen commented Oct 11, 2024

@techtruth Thanks for the PR. To release it needs to be cherry-picked into the 4.2-release branch and published.

I have cherry-picked it so next time we release a patch it will be published. Check #loadersgl channel in the OpenJS / Open Visualization slack for updates (openvisualization.org for slack link)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants