Skip to content

Commit

Permalink
Display Cesium Animation widget when shadows is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhihng Yao committed Jul 19, 2016
1 parent a567cd1 commit b7fe5f0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions 3dwebclient/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
var cesiumViewer = new Cesium.Viewer('cesiumContainer', {
selectedImageryProviderViewModel : Cesium.createDefaultImageryProviderViewModels()[1],
timeline: (shadows == "true"),
animation : false,
animation : (shadows == "true"),
fullscreenButton: false,
shadows: (shadows == "true"),
terrainShadows: (terrainShadows == "true")
Expand Down Expand Up @@ -959,10 +959,9 @@
cesiumViewer.shadows = !cesiumViewer.shadows;
if (cesiumViewer.shadows && !cesiumViewer.timeline) {
CitydbUtil.showAlertWindow("YESNO", "Switching on shadows now", 'Do you want to display the timeline which' +
' allows you to change the current date and time? Please note that "Yes" will reload the entire scene in a new browser window.',
' allows you to change the current date and time? Please note that "Yes" will reload the entire scene in the browser window.',
function() {
var sceneLink = generateLink();
window.open(sceneLink);
window.location.href = generateLink();
});
}
if (!cesiumViewer.shadows) {
Expand Down

0 comments on commit b7fe5f0

Please sign in to comment.