does anyone have a working code example of how to toggle 3D buildings on/off in Cesium?
Since the OSM buildings in Cesium are solid, everything beneath them is obscured so I would like to add an option to toggle them on/off.
Thanks in advance!
createOsmBuildings returns a
Cesium3DTileset. You can show/hide this tileset by simply setting the value of
var tileset = viewer.scene.primitives.add(Cesium.createOsmBuildings());
tileset.show = true;
Working, thank you very much Hannah !!!
This helps me to finnish map with quake damage assessments and other stuff
pon, 4. sij 2021. u 18:45 hannah via Cesium Community <firstname.lastname@example.org> napisao je: