Get zoom level of the viewer in 2D Map

I am trying to set up a map view where panning is only enabled when the user zooms in. In order to achieve this I need to get the current zoom level of the camera. I checked this thread but it does not work for 2D view. Any ideas?

I found a way which seems to be working fine at the moment.
I compute the view rectangle at the beginning, then compare it with the new one to see if it changed.

var bounds =;

if( !Cesium.Rectangle.equals(bounds, ){

Hi @eserrose,

Thank you for posting a follow-up! Happy to see that you found a solution :grinning: :rocket: