Skip to content
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

Camera events #2704

Merged
merged 6 commits into from May 14, 2015
Merged

Camera events #2704

merged 6 commits into from May 14, 2015

Conversation

bagnell
Copy link
Contributor

@bagnell bagnell commented May 13, 2015

Adds Scene.cameraMoveStart and Scene.cameraMoveEnd events.

@pjcozzi
Copy link
Contributor

pjcozzi commented May 13, 2015

Did you try re-implementing the GE examples we ported with these events? If not, do you see any issues in doing so?

* @type {Number}
* @default 500.0
*/
this.cameraEventWaitTime = 500.0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To reduce the surface area of the API, perhaps mark this @private until we know we need it?

@pjcozzi
Copy link
Contributor

pjcozzi commented May 13, 2015

When we merge this, we should search the forum and follow-up in a few places where folks asked for it. @maikuru can you do this?

@pjcozzi
Copy link
Contributor

pjcozzi commented May 13, 2015

When we merge this, we should search the forum and follow-up in a few places where folks asked for it.

For example: https://groups.google.com/forum/#!topic/cesium-dev/AoDahGLCVJY

@pjcozzi
Copy link
Contributor

pjcozzi commented May 13, 2015

This fixes #2366.

@bagnell
Copy link
Contributor Author

bagnell commented May 13, 2015

Did you try re-implementing the GE examples we ported with these events?

No, because I didn't want to update that with a branch off of master. I don't think there will be any issues.

@bagnell
Copy link
Contributor Author

bagnell commented May 13, 2015

@pjcozzi This is ready for another review.

@pjcozzi
Copy link
Contributor

pjcozzi commented May 13, 2015

Last request: can you add this to the Sandcastle example? I know it is duplicate with the ported GE examples, but it will be useful until we better organize everything.

@bagnell
Copy link
Contributor Author

bagnell commented May 14, 2015

@pjcozzi I added an example. This is ready for another look.

@@ -224,6 +253,13 @@
scene.primitives.removeAll();
scene.tweens.removeAll();

if (Cesium.defined(removeStart)) {
removeStart();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to set removeStart and removeEnd to undefined?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thanks.

@bagnell
Copy link
Contributor Author

bagnell commented May 14, 2015

@pjcozzi This is ready.

@maikuru
Copy link

maikuru commented May 14, 2015

Sure can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants