1. A concise explanation of the problem you're experiencing.
Is it possible to shift the globe to the left or right of center?
2. A minimal code example. If you've found a bug, this helps us reproduce and repair it.
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
I would like to display the starfield below a transparent navigation sidebar, and shift-right the globe a distance equal to the width of the sidebar.
4. The Cesium version you're using, your operating system and browser.
Cesium 1.55
1 Like
omar
2
I think the easiest way might be to simply scale the canvas itself, assuming your sidebar is an HTML element?
Otherwise, this Camera Sandcastle shows you how to programmatically move the camera, so you can move it to the left/right that way too:
https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=Camera%20Tutorial.html
在 2019年4月6日星期六 UTC+8上午12:40:53,edhi...@gmail.com写道:
keul
4
The problem I see in any approach like this, is that globe is moved again to the center as soon as an API like flyTo
is called.
Seems there’s no way to change the reference system in this case.