-
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
Some tiles not get loaded when switching terrainProvider #6021
Comments
Thanks @Vineg, this definitely sounds like a bug. @bagnell any thoughts?
What do you mean by this? Are you setting the terrain provider right after creating the Viewer/Widget? If so, you can try passing the |
@mramato, We load terrainProvider url with xhr and after it is loaded, we set it, so it is not immediatly after creating Widget, rather somewhat after it. I already workaround this issue by commenting out |
OK, thanks. Is this easy to reproduce in a Sandcastle example? If you could share a simple test case that we can run ourselves that should make this much easier to fix. Thanks. |
@mramato here you go https://pastebin.com/na4cK7kR |
Thanks @Vineg! Here's the full example from the pastebin link: var viewer = new Cesium.Viewer('cesiumContainer',{
});
// Load PA terrain
var cesiumTerrainProviderMeshes = new Cesium.CesiumTerrainProvider({
url : 'https://assets.agi.com/stk-terrain/v1/tilesets/PAMAP/tiles',
requestWaterMask : true,
requestVertexNormals : true
});
var terrainProvider = new Cesium.CesiumTerrainProvider({
url : 'https://assets.agi.com/stk-terrain/v1/tilesets/world/tiles'
});
setTimeout(function() {
viewer.terrainProvider = terrainProvider;
setTimeout(function() {
viewer.terrainProvider = cesiumTerrainProviderMeshes;
setTimeout(function() {
viewer.terrainProvider = terrainProvider;
},70);
},550);
}, 2000); |
Brought up on the forum: https://groups.google.com/forum/#!topic/cesium-dev/4wKjJWPoLAk |
Here is quickfix geoscan@ce5c718 Maybe someone can review it? |
I can still reproduce this with this Sandcastle. |
Congratulations on closing the issue! I found these Cesium forum links in the comments above: https://groups.google.com/forum/#!topic/cesium-dev/4wKjJWPoLAk If this issue affects any of these threads, please post a comment like the following:
|
If you change terrainProvider during reprojection of the tile, right after
gets called, Imagery stucks in TRANSITIONING state and prevents tile from loading. It is happens because
cancelReprojections
gets called.is method
tileProvider.cancelReprojections
affects something at all? Maybe we could remove it? If you comment it out, everything seems working fine.In our application terrainProvider is changed early and it randomly causes one or two halves of the globe not loaded:
The text was updated successfully, but these errors were encountered: