I'm new to mapbox and trying to put one on my website. How can we ensure that it doesn't zoom out smaller than the div containing the map itself. Currently, it zooms out to level 1, leaving white spaces on all the sides.
I have used the following code
<style>
#map {
position: relative;
padding-bottom: 50%; // This is the aspect ratio
height: 0;
overflow: hidden;
}
</style>
<section id="content">
<div id="map"></div>
</section>