sampleTerrainMostDetailed doesn't work in GoogleEarthEnterpriseTerrainProvider


I use GoogleEarthEnterpriseTerrainProvider, and when i call sampleTerrainMostDetailed it doesn’t work.

I debugged cesium’s code and it seems to throw exception because the availability property of the terrain provider is undefined, and that’s because in GoogleEarthEnterpriseTerrainProvider the getter for availability return undefined (hard-coded), as you can see here.

Am i missing something or is it a real bug?


It seems like the issue is that, while we can get the tiling scheme for GEE, the maximum level is not available. Both of these properties are needed to compute tile availability for sampling. If you can get the maximum level, it would be a straightforward fix.



Is there a problem to get the maximum level? Or you just didnt implement it yet?

I’m not sure if it is provided by GEE itself. They do not have any documentation.