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

Make Camera.setView options consistent with Camera.flyTo #3100

Merged
merged 19 commits into from
Oct 21, 2015
Merged

Conversation

hpinkos
Copy link
Contributor

@hpinkos hpinkos commented Oct 15, 2015

For #3088

  • Changed Camera.setView to take the same arguments as Camera.flyTo
  • Default heading/pitch/roll for Camera.setView was changed to be looking straight down.
  • When options.duration <= 0 in Camera.flyTo, camera calls Camera.setView
  • General code cleanup for functions related to setView, viewRectangle and flyTo
  • Deprecated Camera.viewRectangle

@@ -15,11 +15,17 @@ Change Log
* Deprecated `PerspectiveFrustum.getPixelSize`, use `PerspectiveFrustum.getPixelDimensions` instead. It will be removed in 1.17.
* Deprecated `PerspectiveOffCenterFrustum.getPixelSize`, use `PerspectiveOffCenterFrustum.getPixelDimensions` instead. It will be removed in 1.17.
* Deprecated `Scene\HeadingPitchRange`, use `Core\HeadingPitchRange` instead. It will be removed in 1.17.
* Deprecated `Camera.setView`, use `EllipsoidGeometry` or `Entity.ellipsoid` instead. It will be removed in 1.17.
Copy link
Contributor

Choose a reason for hiding this comment

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

Submit an issue for the deprecated calls.

@pjcozzi
Copy link
Contributor

pjcozzi commented Oct 15, 2015

@bagnell can you review this?

@@ -210,7 +212,7 @@ define([
this._max2Dfrustum = undefined;

// set default view
this.viewRectangle(Camera.DEFAULT_VIEW_RECTANGLE, scene.mapProjection.ellipsoid);
rectangleCameraPosition3D(this, Camera.DEFAULT_VIEW_RECTANGLE, this.position, true);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bagnell using this.setView here breaks a whole bunch of the tests and I couldn't figure out why.

@hpinkos
Copy link
Contributor Author

hpinkos commented Oct 16, 2015

@bagnell this is ready for review now. i finished making the changes i wanted to.

bagnell added a commit that referenced this pull request Oct 21, 2015
Make Camera.setView options consistent with Camera.flyTo
@bagnell bagnell merged commit ebab05f into master Oct 21, 2015
@bagnell bagnell deleted the cameraSetView branch October 21, 2015 17:58
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.

3 participants