This is one of many questions or queries I have about the implementation of Google Maps on a web page. The first one is that by entering the following line with my APIKEY the map IS NOT SHOWN:
<script src="https://maps.googleapis.com/maps/api/js?key=BLABLABLABLABLABLABLABLABLABLABLA&callback=initMap" async defer></script>
On the other hand if I add this other line before, if it is displayed !!!
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
Viewing with F12 tells me that I have included many times the api of google maps ... The code that I have armed is the following:
<head>
<meta charset="utf-8">
<title>Mapa</title>
<style>
#map-canvas {
height: 800px;
width: 100%;
box-shadow: 5px 5px 5px #888;
}
</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>
<!--<script src="https://maps.googleapis.com/maps/api/js?key=BLABLABLABLABLABLABLABLABLABLABLA&callback=initMap" async defer></script>-->