Do you think that limiting the zoom amount would fix this issue? It seems like the camera is moving too close to the terrain, meaning that only a subset of the entities are visible.
That could work, and I’m testing it locally, but I haven’t found a good number for range in meters.
It seems like the zoomTo functionality doesn’t work as expected, at least on larger scales. I would expect that zoomTo adjust zoom level based on how far all the targets are, but instead it just zooms to an “arbitrary” level at the center of all the targets, or even one large target. I only say arbitrary because I don’t know exactly how the function determines zoom extent.
The thread that you shared is exactly what I had in mind. I suggest you move forward with the suggestions outlined in that thread and spend some time experimenting with the correct range.
A few miscellaneous questions and thoughts:
Is the zoomTo function zooming to a different altitude each time you call it?
I recommend looking through our source code for zoomTo. This might provide some clarity on how we are calculating the Camera altitude.
Is zoomTo the correct function to use here? Would you be better off moving the Camera to a location manually?