Get middle tile projection

1. A concise explanation of the problem you’re experiencing.

For a very specific system, I need to be able to automatically get the tile from the middle and perform an AJAX request that returns me the data of it (a bit like a featureInfo). The AJAX call takes a BBOX which is assembled very well through {westProjected},{southProjected},{eastProjected},{northProjected} when using a ImageryProvider but since this is an AJAX call, I can’t use those variables and I have been unable to understand how to create them by myself.

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

None, I have tried so much things - nothing worked.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

It is for a very specific request in order to achieve a “catalog like” system.

4. The Cesium version you’re using, your operating system and browser.

Chrome. Mac OS X. Cesium 1.66

Can you describe what you’re trying to achieve? Are you trying to get the tile as an image?

There isn’t a way to get the globe tile using the public API that I’m aware of, but you can see how the Cesium inspector does it in the source code here:

https://github.com/AnalyticalGraphicsInc/cesium/blob/f12320798b44e4de8f4fc3efd0059c34752d7499/Source/Widgets/CesiumInspector/CesiumInspectorViewModel.js#L508-L534

The “pick a tile” debug function can be found in the inspector example, if you click on “Terrain”:

https://sandcastle.cesium.com/index.html?src=Cesium%20Inspector.html

Basically, I am trying to send an AJAX request to an URL that contains the BBOX, just like you would do through the UrlTemplateImageryProvider. I just can’t use that function as the goal is not to receive an image but a JSON response that need to be treated independently.