Tried adding photoreal tiles to
no errors, no tiles… somebody managed with web pack or can see my mistake?
Are there additional settings? Somebody able to upgrade the example?
import { Ion, Viewer, createGooglePhotorealistic3DTileset, GoogleMaps, createWorldTerrain, Cartesian3, Math } from “cesium”;
import “cesium/Build/Cesium/Widgets/widgets.css”;
import “…/src/css/main.css”
Ion.defaultAccessToken = ‘e…’;
GoogleMaps.defaultApiKey = “A…”;
const viewer = new Viewer(“cesiumContainer”, {
timeline: false,
animation: false,
sceneModePicker: false,
baseLayerPicker: false,
});
const tileset = await createGooglePhotorealistic3DTileset();
tileset.debugShowViewerRequestVolume = true;
viewer.scene.primitives.add(tileset);
console.log("tileset: ", tileset._url)