xxxxxxxxxx
1
<div class="container my-4">
2
3
<p class="font-weight-bold">An example of material design map . Easy to implement and customize. Examples of basic and advanced usage.</p>
4
5
<p>
6
<strong>Detailed documentation and more examples you can find in our
7
<a href="https://mdbootstrap.com/docs/jquery/javascript/google-maps/" target="_blank">Maps Docs</a>
8
</strong>
9
</p>
10
11
<hr>
12
13
<p class="font-weight-bold">Basic example</p>
14
15
<!--Google map-->
16
<div id="map-container-google-1" class="z-depth-1-half map-container" style="height: 500px">
17
<iframe src="https://maps.google.com/maps?q=manhatan&t=&z=13&ie=UTF8&iwloc=&output=embed" frameborder="0"
18
style="border:0" allowfullscreen></iframe>
19
</div>
20
21
<!--Google Maps-->
22
23
</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