diff --git a/CHANGES.md b/CHANGES.md index e373bd7a7687..fed1bfdf8063 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -30,6 +30,7 @@ Change Log * Fixed the geocoder when `Viewer` is passed the option `geocoder: true` [#6833](https://github.com/AnalyticalGraphicsInc/cesium/pull/6833) * Fixed a bug that caused billboard positions to be set incorrectly when using a `CallbackProperty`. [#6815](https://github.com/AnalyticalGraphicsInc/cesium/pull/6815) * Improved support for generating a TypeScript typings file using `tsd-jsdoc` [#6767](https://github.com/AnalyticalGraphicsInc/cesium/pull/6767) +* Updated viewBoundingSphere to use correct zoomOptions [#6848](https://github.com/AnalyticalGraphicsInc/cesium/issues/6848) ### 1.47 - 2018-07-02 diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index dfba6a5d83d8..54dea71c82ea 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -48,6 +48,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu * [Luke San Antonio Bialecki](https://github.com/lukesanantonio) * [Josh Lawrence](https://github.com/loshjawrence) * [Omar Shehata](https://github.com/OmarShehata) + * [Matt Petry](https://github.com/MattPetry) * [NICTA](http://www.nicta.com.au/) * [Chris Cooper](https://github.com/chris-cooper) * [Kevin Ring](https://github.com/kring) @@ -185,4 +186,4 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu * [Jonathan Puckey](https://github.com/puckey) * [Mark Erikson](https://github.com/markerikson) * [Hannah Bollar](https://github.com/hanbollar) -* [Brandon Barker](https://github.com/ProjectBarks) \ No newline at end of file +* [Brandon Barker](https://github.com/ProjectBarks) diff --git a/Source/Widgets/Viewer/Viewer.js b/Source/Widgets/Viewer/Viewer.js index c3993a067d75..b55c5b124afb 100644 --- a/Source/Widgets/Viewer/Viewer.js +++ b/Source/Widgets/Viewer/Viewer.js @@ -2023,7 +2023,7 @@ Either specify options.terrainProvider instead or set options.baseLayerPicker to boundingSphere = BoundingSphere.fromBoundingSpheres(boundingSpheres); if (!viewer._zoomIsFlight) { - camera.viewBoundingSphere(boundingSphere, viewer._zoomOptions.offset); + camera.viewBoundingSphere(boundingSphere, zoomOptions.offset); camera.lookAtTransform(Matrix4.IDENTITY); clearZoom(viewer); zoomPromise.resolve(true);