AnsweredAssumed Answered

Setting duration and easing of view.animateTo()

Question asked by StefanBoonstra on Mar 14, 2016
Latest reply on Apr 1, 2016 by

I am currently working on a side-project using the ArcGIS JavaScript beta API. With this API I have set up a 3D SceneView over which I animate the view's camera, using the 'animateTo()' method.


The kind of fly-by effect this creates looks really great, but I'd like to be able to customize the animation a bit more. For instance, I would like to set the animation's duration to a higher number of seconds and I'd like to set the easing of the animation to linear.


Dojo easing reference: dojo/fx/easing — The Dojo Toolkit - Reference Guide


Is this possible in the current state of the JavaScript beta API (beta 3)? How would I go about implementing this?


My animation code:


  position: [ point.longitude, point.latitude, 10 ],

  heading : bearing,

  tilt : 80