Open hpinkos opened 7 years ago
In the provided code example, morphComplete
will never be called because no morph is happening. Add scene.morphTo3D();
to the end and it will morph (and expose the bug). I'm guessing that we are firing morphComplete
too early and doing something that clears the flight before the morph is completely finished.
I was morphing to 3D using the scene mode picker. Forgot to include that instruction, sorry
Oh, that makes total sense then 😄
@hpinkos Did you ever find a fix to this?
Hi @DustinPham, no sorry we haven't had a chance to look at this yet. I'll ping you when we do.
If you have time to look into it, we would be happy to review a pull request! Thanks!
@hpinkos Thanks for the quick response! I did find a workaround using setView instead of flyTo, but it doesn't look as nice.
Reported on the forum: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/aalnZv0HAaQ
If you morph to 3D when the example is loaded, the camera flight never gets executed.
camera.flyTo
is being called, but the animation must be getting removed somewhere. Adding a shortsetTimeout
fixes the problem. (The user is trying to work around #2647)More info from the user: