North Arrow Support ?

88 views
Skip to first unread message

SCK

unread,
Apr 13, 2018, 3:19:29 AM4/13/18
to cesium-dev
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

Left Gully

unread,
Apr 13, 2018, 8:35:46 PM4/13/18
to cesium-dev
Have you looked at the cesium_navigation add-in?
I think it may provide what you are looking for.
https://github.com/alberto-acevedo/cesium-navigation

Gabby Getz

unread,
Apr 16, 2018, 11:11:22 AM4/16/18
to cesium-dev
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

unread,
Apr 24, 2018, 12:51:40 AM4/24/18
to cesium-dev
Can you please provide the sample code

SCK

unread,
Apr 24, 2018, 12:52:31 AM4/24/18
to cesium-dev
I tried it, but faced issues where  we cant include our application custom code

Gabby Getz

unread,
Apr 25, 2018, 10:08:12 AM4/25/18
to cesium-dev
Can you be more specific about no being able to include your application custom code?
Reply all
Reply to author
Forward
0 new messages