Select to view content in your preferred language

Sceneview auto-rotate compass

1139
2
Jump to solution
04-18-2021 10:08 AM
rcwisc
by
Emerging Contributor

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
Frequent Contributor

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

2 Replies
Tim_McGinnes
Frequent Contributor

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).

rcwisc
by
Emerging Contributor

Excellent! Thank you very much. 

0 Kudos