Thank you ChatGpt … in a blank projet it’s good solution to begin.
<!DOCTYPE html>
<html>
<head>
<title>Google Maps KML Example</title>
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script>
<script>
function initMap() {
var map = new google.maps.Map(document.getElementById('map'), {
zoom: 8,
center: {lat: 37.7749, lng: -122.4194}
});
var kmlLayer = new google.maps.KmlLayer('http://example.com/path/to/your.kml', {
suppressInfoWindows: true,
preserveViewport: false,
map: map
});
}
</script>
</head>
<body onload="initMap()">
<div id="map" style="height: 500px; width: 100%;"></div>
</body>
</html>