How can I lock the heading on a SceneView camera?

06-10-2016 07:25 AM
New Contributor III

For ease of use, I'd like to lock the heading on the SceneView camera to North (0) and disable the right mouse button (rotate heading and pitch) features.

I've managed to lock the heading by capturing the CameraChanged event

MySceneView.CameraChanged += MySceneView_CameraChanged;

and forcing the heading to 0


But, this disables the momentum effect.

Also, how do I disable the right mouse button handling.

Thanks in advance

1 Reply
New Contributor

Hi David,

I'm just getting into developing with SceneViews and this was my very first question.  Why is there no option to lock the heading to 0, just like the experience you get using Googlemaps.  Did you ever find a solution to this?  The navigation is very difficult when viewing data on an international scale.  I'm developing in the jsapi, but this still seems relevant.


0 Kudos