-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make it possible to cancel camera flights #2027
Comments
Until this feature is implemented, do you know of a way to cancel any interaction with cesium until the flyTo is complete? |
Hi! |
Thanks @octomarat! I'm not sure if this is the best solution, but what I would do is change this line in Camera.flyTo That way, you should be able to cancel the flight like this:
Does anyone else have input? |
Hi @hpinkos |
Hmm, that's a good point. I guess the user won't probably won't care about the other tween attributes because those are all behind-the-scene details. And there aren't any other functions on tween. What other purpose would having a |
I also need the ability to pause camera flights, so the function return {
cancelFlight : function() {
tween.cancelTween();
}
}; and give a description of the returned object interface somewhere? Not sure it is ok, but it looks like something in the middle between adding a whole new type ( |
Maybe someone else has an idea or comments on this topic? |
1. Added `Camera.cancelFlight` to cancel the existing camera flight if it exists. 2. Fix overlapping camera flights by always cancelling the previous flight when a new one is created. Fixes #2027
1. Added `Camera.cancelFlight` to cancel the existing camera flight if it exists. 2. Fix overlapping camera flights by always cancelling the previous flight when a new one is created. Fixes #2027
https://groups.google.com/forum/#!msg/cesium-dev/hZJUrD8Owxo/WkHCoYgAkj4J Willem van der Gugten did create a workaround. It works nice as a pause in the flight. It's not a cancel of the flight. |
Is this implemented? I see in Camera documentation Cesium.Camera.FlightCancelledCallback() however no method to actually cancel a flight, and user interaction on the globe does not stop the flight. |
@Maarondesigns yes, see |
Ah, thank you! |
From the mailing list: https://groups.google.com/d/msg/cesium-dev/hZJUrD8Owxo/WkHCoYgAkj4J
Camera.flyTo
adds a tween to the scene but there doesn't seem to be a way for the dev to cancel it (maybe I'm missing something). The list of tweens is private and theflyTo
function doesn't return anything.The text was updated successfully, but these errors were encountered: