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
I am trying to access a Cesium Ion Resource with my access token.
I have looked at this issue but could not get it to work: #414
This JS code works in Cesium SandCastle:
// Grant CesiumJS access to your ion assets
Cesium.Ion.accessToken = "MY_ACCESS_TOKEN";
var viewer = new Cesium.Viewer("cesiumContainer", {
terrainProvider: new Cesium.CesiumTerrainProvider({
url: Cesium.IonResource.fromAssetId(1),
}),
});
viewer.scene.globe.depthTestAgainstTerrain = true;
var tileset = viewer.scene.primitives.add(
new Cesium.Cesium3DTileset({
url: Cesium.IonResource.fromAssetId(96188),
})
);
I am getting the following Error: Uncaught Error: ForwardRef(Globe)(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.
The text was updated successfully, but these errors were encountered:
I am trying to access a Cesium Ion Resource with my access token.
I have looked at this issue but could not get it to work:
#414
This JS code works in Cesium SandCastle:
This is what I have:
I am getting the following Error:
Uncaught Error: ForwardRef(Globe)(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.
The text was updated successfully, but these errors were encountered: