I want to place the maps in grid system from the backend I have placed the maps but coming in vertical way.
But My requirement is based on the data (i.e no of maps) it has to adjust the grids
for ex. if the maps are two it has to show two maps one by one, if it has 4 it has to show two maps in first row and two maps in second row and so on in bootstrap grid system.
.component.html
<div *ngFor="let x of data ; let i =index">
<div class="container">
<div class="row no-gutters">
<div class="col-sm-5">
<div id="x{{i}}" ng-onload="mulmaps(x{{i}});" style="height: 300px;"></div>
</div>
</div>
</div>