Sceneview auto-rotate compass

143
2
Jump to solution
04-18-2021 10:08 AM
rcwisc
by
New Contributor II

Is there any way to auto-rotate the compass in sceneview using the JavaScript api? I would like the compass to constantly auto-rotate around the 3d map area in a counter clock-wise circle? 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Tim_McGinnes
Occasional Contributor III

Esri has a very good blog post about controlling the camera in scenes: 3D camera intro using the ArcGIS API for JavaScript 

At the bottom of the blog post they show this sample: Rotating 3D Buildings Berlin (you can modify the rotation direction to counter clockwise in the rotate function by changing +0.1 to -0.1).

View solution in original post

0 Kudos
2 Replies
Tim_McGinnes
Occasional Contributor III

Esri has a very good blog post about controlling the camera in scenes: 3D camera intro using the ArcGIS API for JavaScript 

At the bottom of the blog post they show this sample: Rotating 3D Buildings Berlin (you can modify the rotation direction to counter clockwise in the rotate function by changing +0.1 to -0.1).

View solution in original post

0 Kudos
rcwisc
by
New Contributor II

Excellent! Thank you very much. 

0 Kudos