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):
-
Open the Billboards demo here: http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Billboards.html
-
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:
- 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);
- 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:
- 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