I recently built a WordPress site, and no matter what I do for the Google map API, the maps won’t show. I created the credentials, edited the JS manually, within the theme and even used plugins. Nothing is working.
Any ideas of what specifically needs to be done on the Google API End?
Can you try calling the script part at the end after loading the DOM
<script>
function initMap(){
// initialize your google map here
}
</script>
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&callback=initMap"
async defer></script>
One thing I would check is whether or not your setup works outside WP, on a simple, static page. At least then you’d know whether WP is getting in the way or not.