-
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 Camera.setView options consistent with Camera.flyTo #3100
Conversation
Conflicts: CHANGES.md
@@ -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. |
There was a problem hiding this comment.
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.
@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); |
There was a problem hiding this comment.
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.
@bagnell this is ready for review now. i finished making the changes i wanted to. |
Conflicts: CHANGES.md
Make Camera.setView options consistent with Camera.flyTo
For #3088
Camera.setView
to take the same arguments asCamera.flyTo
Camera.setView
was changed to be looking straight down.options.duration <= 0
inCamera.flyTo
, camera callsCamera.setView
setView
,viewRectangle
andflyTo
Camera.viewRectangle