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

New function: reset tileset styling

parent c2322910
......@@ -302,3 +302,17 @@ const activate3DTileFeaturePicking = function () {
};
activate3DTileFeaturePicking();
/**
* Reset the styling for all buildings contained in a 3D tileset. The default colour is `white`
*
* @param {Object} targetTileset The 3D tileset to be styled
* @returns {undefined} undefined
*/
const resetStylingForAllBuildings = function (targetTileset) {
targetTileset.style = new Cesium.Cesium3DTileStyle({
color: {
conditions: [["true", 'color("white")']],
},
});
};
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