-
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
Add the ability to cut out a Rectangle from ImageryLayers #7056
Conversation
Thanks for the pull request @likangning93!
Reviewers, don't forget to make sure that:
I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
e998f8b
to
d241e0c
Compare
@likangning93 This looks good to me. Can you merge in master? |
@bagnell merged in master |
@@ -573,13 +573,13 @@ defineSuite([ | |||
switchViewMode(SceneMode.SCENE3D, new GeographicProjection(Ellipsoid.WGS84)); | |||
|
|||
return updateUntilDone(scene.globe).then(function() { | |||
expect(scene).toRender([0, 0, 127, 255]); // default baseColor | |||
expect(scene).toRender([0, 0, 128, 255]); // default baseColor |
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.
This test is failing for me. The result is 127, not 128.
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.
Hmmm, I swear it was passing on Windows/Linux on my Intel system, but now I'm seeing the same thing on Windows + Nvidia. Either way, poorly designed spec...
@bagnell this is up-to-date! |
This PR adds the ability to cut out a
Rectangle
fromImageryLayers
.A caveat that I feel needs defense: this doesn't influence imagery tile selection. The intent was for this
Rectangle
to be dynamic, and it looked to me like getting this to function with the existing imagery tile selection code would have been pretty complicated. Let me know if I was wrong and I should fix that.Besides this just being kind of a fun feature, we likely need this to implement #6531.
Client-side mosaics and client-side imagery reprojection, both of which need to preserve pixel detail, will probably require doing something like generating high detail imagery for small areas on-the-fly and drawing it over low-detail "placeholder" imagery that covers the entire mosaic area.
The layers can be transparent, so layering them directly on top of each other isn't acceptable.