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 computeFlyToLocationForRectangle always return a Cartographic #7154

Merged
merged 1 commit into from
Oct 16, 2018

Conversation

mramato
Copy link
Contributor

@mramato mramato commented Oct 16, 2018

Not sure what I was thinking when I wrote computeFlyToLocationForRectangle, but this changes it so it always returns a Cartographic. Previously it would return a Rectangle if terrain wasn't set or didn't have availability which just made the calling code confusing for no reason and lead to #7143.

computeFlyToLocationForRectangle is private, so this isn't a breaking change.

Fixes #7143

Not sure what I was thinking when I wrote
`computeFlyToLocationForRectangle`, but this changes it so it always
returns a `Cartographic`. Previously it would return a Rectangle if terrain
wasn't set or didn't have `availability` which just made the calling code
confusing for no reason and lead to #7143.

`computeFlyToLocationForRectangle` is private, so this isn't a breaking
change.

Fixes #7143
@mramato mramato requested a review from hpinkos October 16, 2018 14:22
@cesium-concierge
Copy link

Thanks for the pull request @mramato!

  • ✔️ Signed CLA found.

Reviewers, don't forget to make sure that:

  • Cesium Viewer works.
  • Works in 2D/CV.
  • Works (or fails gracefully) in IE11.

I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.

🌍 🌎 🌏

@hpinkos
Copy link
Contributor

hpinkos commented Oct 16, 2018

👍 thanks @mramato!

@hpinkos hpinkos merged commit 420250e into master Oct 16, 2018
@hpinkos hpinkos deleted the issue7143 branch October 16, 2018 15:19
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