Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
iCity
EnergyDashboard
Commits
fdf63e71
Commit
fdf63e71
authored
3 years ago
by
Pithon Kabiro
Browse files
Options
Download
Email Patches
Plain Diff
New function: reset tileset styling
parent
c2322910
master
1 merge request
!26
Link drop-down list and 3d visualization
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
public/js/appCesium.js
+14
-0
public/js/appCesium.js
with
14 additions
and
0 deletions
+14
-0
public/js/appCesium.js
+
14
-
0
View file @
fdf63e71
...
...
@@ -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")
'
]],
},
});
};
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets