Skip to content

Commit

Permalink
use flyHome
Browse files Browse the repository at this point in the history
  • Loading branch information
hpinkos committed Feb 4, 2016
1 parent cec4127 commit be664b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Apps/Sandcastle/gallery/Billboards.html
Expand Up @@ -278,7 +278,7 @@
}]);

Sandcastle.reset = function () {
viewer.camera.setView({destination: Cesium.Camera.DEFAULT_VIEW_RECTANGLE});
viewer.camera.flyHome(0);
viewer.entities.removeAll();
};
//Sandcastle_End
Expand Down
7 changes: 2 additions & 5 deletions Apps/Sandcastle/gallery/Camera.html
Expand Up @@ -166,11 +166,8 @@
function viewInICRF() {
Sandcastle.declare(viewInICRF);

var vm = viewer.homeButton.viewModel;
vm.duration = 0.0;
vm.command();
vm.duration = 3.0;

viewer.camera.flyHome(0);

clock.multiplier = 3 * 60 * 60;
scene.preRender.addEventListener(icrf);
scene.globe.enableLighting = true;
Expand Down

0 comments on commit be664b0

Please sign in to comment.