I want to present a model on the map, and let it spin automatically. So I want to set the camera rotate over this model slowly.
I kinda achieved by using a method I don’t really feel elegant:
-
I use viewer.camera.lookAt(myModelPosition, HeadingPitchRange)
-
Then i call it every 0.1 sec with a smaller heading value.
Could anyone help with a more elegant way?
Thanks.