How do I move the center of the camera to the side of the screen instead of the center

75 views
Skip to first unread message

shil...@gmail.com

unread,
Oct 8, 2018, 2:54:23 AM10/8/18
to cesium-dev
Part of my map is hiding under another HTML element, and sometimes above it.
I want to change the center of the view when I use flyTo according to the new center of the map.

What is the best way to do this?

Omar Shehata

unread,
Oct 9, 2018, 11:18:25 AM10/9/18
to cesium-dev
I think it depends on how you're using flyTo. If you're just passing in a destination as a Cartesian3, you can just apply an offset to that before you pass it in. You may also find these functions helpful in translating back and forth between world and screen coordinates:

Reply all
Reply to author
Forward
0 new messages