Hello,
I’m noticing that the first time I am displaying my cesium Viewer if I do:
var rectangle = Cesium.Rectangle.fromCartographicArray(cartoPoints);
camera.viewRectangle(rectangle);
My viewer does not show just the that rectangle. The viewer will be centered on the rectangle but more zoomed out.
I also check that the imageryProvider is ready and it is.
However if I wait one second, the viewer will display the correct rectangle.
E.g.
setTimeout(function() {
camera.viewRectangle(rectangle)
}, 1000);
Any suggestions?
Regards,
Sunny Little