SCK
April 13, 2018, 7:19am
1
1. A concise explanation of the problem you’re experiencing.
When I tilt and rotate the 3D map, the direction of the map is unknown
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.
When we rotate 3D map with terrain, we don’t know which direction is pointing up. This is a basic GIS function
4. The Cesium version you’re using, your operating system and browser.
Cesium 1.42
Have you looked at the cesium_navigation add-in?
I think it may provide what you are looking for.
You can get the direction of north by subtracting the camera position, Camera.positionWC , from the position of the north pole (or the location of true north).
Thanks,
Gabby
SCK
April 24, 2018, 4:51am
4
Can you please provide the sample code
SCK
April 24, 2018, 4:52am
5
I tried it, but faced issues where we cant include our application custom code
Can you be more specific about no being able to include your application custom code?