From d1d5de51e870ecdb09f2b1eb06e9146813763c01 Mon Sep 17 00:00:00 2001 From: Pithon Kabiro <pithon.kabiro@hft-stuttgart.de> Date: Wed, 2 Jun 2021 18:21:29 +0200 Subject: [PATCH] Tweak properties for Cesium globe; change basemap --- public/js/appCesium.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/public/js/appCesium.js b/public/js/appCesium.js index ce1fcb3..134ef8b 100644 --- a/public/js/appCesium.js +++ b/public/js/appCesium.js @@ -9,9 +9,11 @@ const LOAD_DETAILED_BLDG225 = false; // Global variable const viewer = new Cesium.Viewer("cesiumGlobeContainer", { - // terrainProvider: Cesium.createWorldTerrain(), + scene3DOnly: true, + imageryProvider: Cesium.createOpenStreetMapImageryProvider({ + url: "https://a.tile.openstreetmap.org/", + }), }); -// viewer.scene.globe.depthTestAgainstTerrain = true; const loadTiles = function (urlTiles) { const tileset = new Cesium.Cesium3DTileset({ @@ -40,7 +42,7 @@ const loadNonDetailed = function () { // Paths to data sources const URL_3DTILES = "data_3d/3dtiles/1_full/tileset.json"; - // Tileset without building 225 + // Tileset with all buildings loadTiles(URL_3DTILES); }; -- GitLab