-
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
Fix viewer.zoomTo and viewer.flyTo imagery when using terrain. #6895
Conversation
1. Pull `computeFlyToLocationForRectangle` out of Geocoder and make it a standalone private function. Add tests for it too. 2. Have Viewer call the function when zooming or flying to terrain.
Thanks for the pull request @mramato!
Reviewers, don't forget to make sure that:
I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
Do you think it'd be fairly easy to fix this now too? #4327 |
This all looks good to me @mramato, thanks! |
Maybe, but it's not as straightforward. The problem there is that we don't know we are zooming to the billboard, the entity could have some stuff on the ground and some stuff not. We might be able to do something though, I'll add some thoughts to the issue. |
Thanks for v1.49, with many appreciated bug fixes and enhancements. Preliminary testing exposed an issue with the geocoder fly-to functionality though, with Cesium failed to render immediately into flight (default function). See screen shot for error message. Some initial testing exposed that this is only a problem with the packaged browser minified Cesium js. I manually uglified/minified the unminified version on the Skalman site, and found no problems. I'll see if I can probe further into this, but having to work with the minified code makes it very difficult. Could there be another issue similar to the Cesium base directory previously? Kjell |
@keikland we have seen crashes like that from time to time before, but we don't have any issues open currently. Can you please open a new issue with steps for reproducing the error? It's weird that it only happens with the minified version. |
Hi @hpinkos . i get the error in a rather large app and will need to boil it down to a minimal version to reproduce the problem for you. Need to figure that out. The special part of the setup is that geocoding is implemented as a bespoke feature with several sources and added "manually" during startup. The code follows the the Cesium default implementation pretty much to the letter, but has some additional controls. to get around some Cesium issues. Here it is, and I'll revert with a new issue and a boiled-down version that hopefully reproduces. // Define function to initialize the search feature (called from xxx.js onload.)
} |
Hi @hpinkos . Reverted to the standard minified Cesium.js and stepped through my startup code to check if timing could be an issue, and things worked. I then ran without any breaks, and things worked too. This can only mean that dynamically changing external content loaded at startup is to blame, and I suspect rendering of complex KML-based NOAA data (hurricanes and ice). It would also indicate that it has nothing to do with changes in v1.49! I'll need to wait for the problem to return for me to further zoom in on the problem. |
Thanks for the update @keikland! Let me know if there's anything we can do to help =) |
Realized Viewer had the same problem as Geocoder when zooming to imagery extents. This PR mostly moves code around.
computeFlyToLocationForRectangle
out of Geocoder and make it a standalone private function. Add tests for it too (can't believe you guys let me get away with no tests in my other PR) 😮 .Part of #5942