diff --git a/pxy_simulations/templates/pxy_simulations/simulation_mvp.html b/pxy_simulations/templates/pxy_simulations/simulation_mvp.html index 0f58741..17278f0 100644 --- a/pxy_simulations/templates/pxy_simulations/simulation_mvp.html +++ b/pxy_simulations/templates/pxy_simulations/simulation_mvp.html @@ -140,6 +140,19 @@ selectionIndicator: false, }); + let osmBuildingsTileset = null; + + async function loadOsmBuildings() { + try { + osmBuildingsTileset = await Cesium.createOsmBuildingsAsync(); + viewer.scene.primitives.add(osmBuildingsTileset); + } catch (err) { + console.warn("OSM Buildings failed to load", err); + } + } + + loadOsmBuildings(); + const basemapSelect = document.getElementById("basemap"); const basemapLayers = {};