From be664b0e94b588fedddd8ccf26aff8c2fdfebb33 Mon Sep 17 00:00:00 2001 From: hpinkos Date: Thu, 4 Feb 2016 11:53:50 -0500 Subject: [PATCH] use flyHome --- Apps/Sandcastle/gallery/Billboards.html | 2 +- Apps/Sandcastle/gallery/Camera.html | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Apps/Sandcastle/gallery/Billboards.html b/Apps/Sandcastle/gallery/Billboards.html index 8e9ab2db432..24b8f931084 100644 --- a/Apps/Sandcastle/gallery/Billboards.html +++ b/Apps/Sandcastle/gallery/Billboards.html @@ -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 diff --git a/Apps/Sandcastle/gallery/Camera.html b/Apps/Sandcastle/gallery/Camera.html index 7f00f8f35f2..0ef13f86d21 100644 --- a/Apps/Sandcastle/gallery/Camera.html +++ b/Apps/Sandcastle/gallery/Camera.html @@ -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;