Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
iCity
EnergyDashboard
Commits
1f034295
Commit
1f034295
authored
Oct 22, 2021
by
Pithon Kabiro
Browse files
Replace ternary operator with if/else block
parent
c382d5d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
public/js/appCesium.js
View file @
1f034295
...
...
@@ -145,9 +145,11 @@ const loadDetailedBuilding225 = function () {
// Default case: load only 3dTiles
// Alternative case: load 3dTiles + glTF
LOAD_DETAILED_BLDG225
?
loadDetailedBuilding225
()
:
loadNonDetailedBuilding225
();
if
(
LOAD_DETAILED_BLDG225
)
{
loadDetailedBuilding225
();
}
else
{
loadNonDetailedBuilding225
();
}
/**
* Activate feature picking for the displayed 3DTiles
...
...
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