From b9faf9183199fdeac77a236656146ac2e8e83939 Mon Sep 17 00:00:00 2001 From: Ekaropolus Date: Sun, 4 Jan 2026 00:52:11 -0600 Subject: [PATCH] Buildings in simulation --- .../templates/pxy_simulations/simulation_mvp.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 = {};