# Bug: can look under Earth after zoomTo/flyTo billboard

**URL:** <https://community.cesium.com/t/bug-can-look-under-earth-after-zoomto-flyto-billboard/5154>\
**Category:** CesiumJS\
**Created:** [February 13, 2017, 3:43pm UTC](https://community.cesium.com/t/bug-can-look-under-earth-after-zoomto-flyto-billboard/5154 "2017-02-13T15:43:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacob](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@Jacob](https://community.cesium.com/u/Jacob)\
**Post date:** [February 13, 2017, 3:43pm UTC](https://community.cesium.com/t/bug-can-look-under-earth-after-zoomto-flyto-billboard/5154/1 "2017-02-13T15:43:46Z")

</div>

In my app, I create a billboard marker and then perform a zoomTo or flyTo on the entity, which seems to work fine. However, I am thereafter able to look under the Earth surface and see stars underneath if I zoom or rotate too far.

To reproduce (I’m using Chrome):

1. Open the Billboards demo here: [http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Billboards.html](http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Billboards.html)

2. From the dropdown, select “Set billboard properties at creation” and note a new billboard. Zoom in on it and rotate the camera to view the horizon, and note how the surface of the virtual Earth blocks further rotation and provides a clean view:

[![](https://lh3.googleusercontent.com/-ktMKMBUIMK4/WKHRJoZEzII/AAAAAAAAAxc/TpCBcjNRzwoPkk4JlE95p2snEnLunCeUQCLcB/s1600/CesiumZoomToBug_Good.jpg)](https://lh3.googleusercontent.com/-ktMKMBUIMK4/WKHRJoZEzII/AAAAAAAAAxc/TpCBcjNRzwoPkk4JlE95p2snEnLunCeUQCLcB/s1600/CesiumZoomToBug_Good.jpg)

1. In the setBillboardProperties function, update line 17 to return a variable:

var bb = viewer.entities.add({

And insert a call to zoomTo or flyTo after the block of code on line 34:

viewer.flyTo(bb);

1. Click “Run” and the select “Set billboard properties at creation”. After the zoom or fly, rotate the view all the way and you can see underneath the virtual Earth:

[![](https://lh3.googleusercontent.com/-Arpj1N32eOE/WKHSG2FrPZI/AAAAAAAAAxg/K2EUrmzuQp4YofBZgNRL8jwZ0tN4A5T_QCLcB/s1600/CesiumZoomToBug_Bad.jpg)](https://lh3.googleusercontent.com/-Arpj1N32eOE/WKHSG2FrPZI/AAAAAAAAAxg/K2EUrmzuQp4YofBZgNRL8jwZ0tN4A5T_QCLcB/s1600/CesiumZoomToBug_Bad.jpg)

1. This behavior now occurs anywhere on the globe. I can click “Home” then zoom in anywhere, rotate, and get the same behavior. Also, it seems I can zoom through the surface of the Earth anywhere and see stars underneath.

I have seen some cases where the initial zoomTo/flyTo crashes through the Earth, but that might be location specific.

Thanks,

Jacob

---

<div class="post-metadata">

**Author:** ![hannah](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/hannah/32/4509_2.png) [@hannah](https://community.cesium.com/u/hannah)\
**Post date:** [February 13, 2017, 4:14pm UTC](https://community.cesium.com/t/bug-can-look-under-earth-after-zoomto-flyto-billboard/5154/2 "2017-02-13T16:14:06Z")

</div>

Hi Jacob,

Thanks or reporting this!  
I’ve created an issue on our github here: [https://github.com/AnalyticalGraphicsInc/cesium/issues/4999](https://github.com/AnalyticalGraphicsInc/cesium/issues/4999)

I’ve linked your forum post so we can notify you when we get a chance to look into this.

Best,

Hannah
