I am trying to get each tiles' rectangle and level in current view, and use these information to do some ajax request.
Now I have already got all rectangles through:
var tileRecangles = [];
var tilesToRender = viewer.scene.globe._surface.tileProvider._tilesToRenderByTextureCount;
if (Cesium.defined(tilesToRender)) {
for (var j = 0, len = tilesToRender.length; j < len; j++) {
var quadTrees = tilesToRender[j];
if (Cesium.defined(quadTrees)) {
for (var i = 0; i < quadTrees.length; i++) {
tileRecangles.push(quadTrees[i].rectangle);
}
}
}
}
The question is how to get the level for each tiles? The value in red circles of this screenshot
Thanks.
--
You received this message because you are subscribed to the Google Groups "cesium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cesium-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "cesium-dev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cesium-dev/cIHbsAKnRa8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cesium-dev+...@googlegroups.com.