Hi,
I’ve looked at the QuadTreePrimitive example in the sandcastle and it seems like what I need.
I couldn’t find anything about it in the Reference Documentation.
My question is - is this officially supported by Cesium? Is there any documentation about it?
Thanks
Hi,
The QuadtreePrimitive is considered private, which means we reserve the right to make backward-incompatible changes to it in the future. It’s also definitely an advanced API. But if you’re up for it, you’re welcome to use it. The comments in the code serve as decent documentation. You can also look at GlobeSurfaceTileProvider, which uses QuadtreePrimitive to render the terrain and imagery.
Kevin
Hi,
I’ve succeeded hooking into it using the example given.
Every tile I’ve already processed won’t be processed again, in the given example. I guess this is good caching behavior.
Should I change the tile’s state to Cesium.QuadtreeTileLoadState.START whenever I get an update from the server for the certain tile? Is this the way to tell cesium a tile’s data was changed?
Thanks
Cesium currently has no built-in way of handling changes in tile data. You’ll need a manual way of updating the data, preferably without invalidating the existing data while the new data is loading.