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.