Bound CesiumJS panning and zooming out to the map extent

Hey.
I am using Cesium in 2D mode by setting sceneMode to SCENE2D, but I can still see Cesium container’s background using panning up/down or zooming out to max view.
Is there a way to disable this behavior ?

Welcome to Cesium Community!

This post may be of help. Please follow up if that doesn’t help!

Uanfortonally it didn’t solve my issue

Which of the recommended approaches in the linked post did you try (setting maximumZoomFactor, maximumTranslateFactor, framing the camera on the map, etc)? Like the post mentioned, it’s not possible to limit the edges of the map to the window, but you can limit the zoom and pan settings to reduce the background visibility.