...mon site tout sur API Google Maps et substituts retour à une carte simple par défaut ...me contacter

en noir : code obligatoire
en vert : explications
en rouge : code personnalisable
en grisé : construction d'une carte simple par défaut

<!DOCTYPE html>
<html>
<head>
<title>Carte avec recentrage automatique et Zoom pleine fenêtre</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<style>
#carte {
height: 100%;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<div id="carte"></div>
<script>
function InitCarte() {
var Cordoba = new google.maps.LatLng(37.882774,-4.774648);
var macarte = new google.maps.Map(document.getElementById('carte'), {
zoom: 7,
center: Cordoba
});

var marqueur = new google.maps.Marker({
position: Cordoba,
map: macarte,
title: 'Clic pour zoomer'
});

macarte.addListener('center_changed', function() {
// recentrage de la carte au bout de 5 sec
window.setTimeout(function() {
macarte.panTo(marqueur.getPosition());
}, 5000);
});
// apres un clic sur le marqueur
marqueur.addListener('click', function() {
macarte.setZoom(15);
macarte.setCenter(marqueur.getPosition());
});
}
</script>
<!-- autorisation Google -->
<script src="https://maps.googleapis.com/maps/api/js?key=Ma_Key&callback=InitCarte"
async defer></script>
</body>
</html>