1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
| const viewer = new Cesium.Viewer("cesiumContainer", { sceneModePicker: false, homeButton: false, navigationHelpButton: false, baseLayerPicker: false, navigationInstructionsInitiallyVisible: false, fullscreenButton: false, selectionIndicator: false, skyBox: false, timeline: false, animation: false, shouldAnimate: true, infoBox: false, geocoder: Cesium.IonGeocodeProviderType.GOOGLE,
globe: false, }); viewer.cesiumWidget.creditContainer.style.display = "none";
viewer.scene.skyAtmosphere.show = true;
try { const tileset = await Cesium.createGooglePhotorealistic3DTileset({
onlyUsingWithGoogleGeocoder: true, }); viewer.scene.primitives.add(tileset); } catch (error) { console.log(`Error loading Photorealistic 3D Tiles tileset. ${error}`); }
viewer.scene.camera.setView({ destination: new Cesium.Cartesian3( -2693797.551060477, -4297135.517094725, 3854700.7470414364, ), orientation: new Cesium.HeadingPitchRoll( 4.6550106925119925, -0.2863894863138836, 1.3561760425773173e-7, ), });
|