Skip to content

Commit

Permalink
Load cesium ion tileset right when available (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
jailln committed Jul 3, 2024
1 parent 9db551a commit f7f94e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/three/renderers/CesiumIonTilesRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ const CesiumIonTilesRendererMixin = base => class extends base {
this.rootURL = url;
this.fetchOptions.headers = this.fetchOptions.headers || {};
this.fetchOptions.headers.Authorization = `Bearer ${ json.accessToken }`;
// Actually load the tileset now that we got its url from the cesium ion server
super.update();

} ).catch( () => {

Expand Down

0 comments on commit f7f94e7

Please sign in to comment.