Commit d1d5de51 authored by Pithon Kabiro's avatar Pithon Kabiro
Browse files

Tweak properties for Cesium globe; change basemap

parent 1028571a
...@@ -9,9 +9,11 @@ const LOAD_DETAILED_BLDG225 = false; ...@@ -9,9 +9,11 @@ const LOAD_DETAILED_BLDG225 = false;
// Global variable // Global variable
const viewer = new Cesium.Viewer("cesiumGlobeContainer", { 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 loadTiles = function (urlTiles) {
const tileset = new Cesium.Cesium3DTileset({ const tileset = new Cesium.Cesium3DTileset({
...@@ -40,7 +42,7 @@ const loadNonDetailed = function () { ...@@ -40,7 +42,7 @@ const loadNonDetailed = function () {
// Paths to data sources // Paths to data sources
const URL_3DTILES = "data_3d/3dtiles/1_full/tileset.json"; const URL_3DTILES = "data_3d/3dtiles/1_full/tileset.json";
// Tileset without building 225 // Tileset with all buildings
loadTiles(URL_3DTILES); loadTiles(URL_3DTILES);
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment