Hello all,
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!
hannah
2
Hello @Davor_Fiedler,
createOsmBuildings
returns a Cesium3DTileset
. You can show/hide this tileset by simply setting the value of tileset.show
.
For example:
var tileset = viewer.scene.primitives.add(Cesium.createOsmBuildings());
tileset.show = true;
Best regards,
Hannah
Cesium Staff
Working, thank you very much Hannah !!!
This helps me to finnish map with quake damage assessments and other stuff 
Best regards,
Davor
pon, 4. sij 2021. u 18:45 hannah via Cesium Community <cesium@discoursemail.com> napisao je: