Sandcastle Custom DataSource polyline spikes animation

Hi,
I have followed the Sandcastle Custom DataSource example loading data from a json datasource. What I would like to do is change the json data and animate the lines up and down as the datasource changes. I have this working with a three.js globe by Tweening the scale from 0.00001 to 1 and visa versa.

eg TWEEN.Tween(this.myLine.scale).to({z: 0.00001}, 1000)
     TWEEN.Tween(this.myLine.scale).to({z: 1}, 1000)

I cannot find anything like this with Cesium other than maybe playing with the position but not sure how or if possible to animate. Any help greatly appreciated.

Cheers

Hi there,

You might find this code example helpful: https://groups.google.com/d/msg/cesium-dev/3zHCkexUFc4/ysIceMHUBQAJ

Best,

  • Rachel