thanks for the answer, that dosen't work for me, but i change this:
function initMap() { const map = new google.maps.Map(document.getElementById("map"), { zoom: 3, center: { lat: 0, lng: -180 }, mapTypeId: "terrain", }); }and now i use this:
https://developers.google.com/maps/documentation/maps-static/start
I hope help someone.