xxxxxxxxxx
1
2
<div class="container my-4">
3
4
<p class="font-weight-bold">A simple example of how to add google map in html</p>
5
6
<p><strong>Detailed documentation and more examples you can find in our <a href="https://mdbootstrap.com/docs/jquery/javascript/google-maps/"
7
target="_blank">Bootstrap Google Maps Docs</a> </p>
8
9
<hr>
10
11
<p class="font-weight-bold">Basic example</p>
12
13
<!--Google map-->
14
<div id="map-container-google-1" class="z-depth-1-half map-container" style="height: 500px">
15
<iframe src="https://maps.google.com/maps?q=manhatan&t=&z=13&ie=UTF8&iwloc=&output=embed" frameborder="0"
16
style="border:0" allowfullscreen></iframe>
17
</div>
18
19
<!--Google Maps-->
20
21
</div>
xxxxxxxxxx
1
.map-container{
2
overflow:hidden;
3
padding-bottom:56.25%;
4
position:relative;
5
height:0;
6
}
7
.map-container iframe{
8
left:0;
9
top:0;
10
height:100%;
11
width:100%;
12
position:absolute;
13
}
1
1
Console errors: 0