I'm trying to call / load GoogleMap api in a javaScript file
jQuery(function($) {
// Asynchronously Load the map API
var script = document.createElement('script');
script.src = "https://maps.googleapis.com/maps/api/js?
key=YOUR_API_KEY&callback=initMap";
document.body.appendChild(script);
});
I get the error message "Google Maps API error: MissingKeyMapError"
I found this code using the tutorial here > https://www.youtube.com/watch?v=P6wFYOtXwCQ&t=1s