-
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
Imagery Layers Split has IDL issues in 2D #5106
Comments
Hello @gongzk, the demo worked fine for me in 2D. What OS and browser are you using? |
Google Chrome 56.0.2924.87 m
to 2D mode is ok,but
after pan and drag the map(as 180 E line in map) ...
在 2017-03-15 20:31:43,"Hannah" <[email protected]> 写道:
Hello @gongzk, the demo worked fine for me in 2D. What OS and browser are you using?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Ah, thank you @gongzk. I updated the comment for this issue. The layer splitter seems to have trouble with the international date line, which is where we stitch the 2D map together for infinite scrolling |
@jasonbeverage if you have time, this one could be of interest to you. |
I see that. I didn't realize that the 2D view did this multiple viewport infinite scrolling thing :) On first glance it looks like you might be able to adjust the imagerySplitPosition in execute2DViewportCommands based on the offset before you actually execute the commands. |
@pjcozzi the issue is that I'm using the width of the viewport to scale the imagerySplitPosition to fragment coords. This assumes that the viewport width is always the same width as the full canvas. This is the offending line: If I change the czm_viewport.z to be the hardcoded width of the canvas in the sandcastle example (1135.0 for me) then it works correctly in all cases that I can see. A couple of ways to fix this:
I'm more of a fan of 1, what do you think? |
Made czm_imagerySplitPosition use absolute coordinates. Fixes #5106.
Thanks again for the report, @gongzk! Fixed in #5151 by @jasonbeverage. |
http://cesiumjs.org/Cesium/Apps/Sandcastle/index.html?src=Imagery%20Layers%20Split.html&label=Showcases
If you scroll the 2D map so the IDL is in the center of the screen, the split imagery no longer lines up with the screen divider
The text was updated successfully, but these errors were encountered: